Author: lgiessmann Date: Thu Aug 26 17:37:14 2010 New Revision: 311
Log: fixed a problem with the host prefix in the javascript constants file
Modified: branches/new-datamodel/src/ajax/javascripts/constants.js trunk/src/ajax/javascripts/constants.js
Modified: branches/new-datamodel/src/ajax/javascripts/constants.js ============================================================================== --- branches/new-datamodel/src/ajax/javascripts/constants.js (original) +++ branches/new-datamodel/src/ajax/javascripts/constants.js Thu Aug 26 17:37:14 2010 @@ -21,8 +21,8 @@ var TYPE_PSIS_URL = HOST_PREF + "json/tmcl/types/"; var INSTANCE_PSIS_URL = HOST_PREF + "json/tmcl/instances/"; var OWN_URL = HOST_PREF + "isidorus"; -var SUMMARY_URL = HOST_PREF + "json/summary" -var TM_OVERVIEW = "/json/tmcl/overview/"; +var SUMMARY_URL = HOST_PREF + "json/summary"; +var TM_OVERVIEW = HOST_PREF + "json/tmcl/overview/"; var TIMEOUT = 20000; // const TIMEOUT = 10000 --> "const" doesn't work under IE
Modified: trunk/src/ajax/javascripts/constants.js ============================================================================== --- trunk/src/ajax/javascripts/constants.js (original) +++ trunk/src/ajax/javascripts/constants.js Thu Aug 26 17:37:14 2010 @@ -11,7 +11,7 @@
// --- Some constants fot the http connections via the XMLHttpRequest-Object -var HOST_PREF = /*"http://localhost:8000/%22;*/ "192.168.178.23:8000/"; // of the form "http://(.+)/" +var HOST_PREF = "http://localhost:8000/"; /*"192.168.178.23:8000/"; // of the form "http://(.+)/%22*/ var GET_PREFIX = HOST_PREF + "json/get/"; var GET_STUB_PREFIX = HOST_PREF + "json/topicstubs/"; var TMCL_TYPE_URL = HOST_PREF + "json/tmcl/type/"; @@ -21,9 +21,9 @@ var TYPE_PSIS_URL = HOST_PREF + "json/tmcl/types/"; var INSTANCE_PSIS_URL = HOST_PREF + "json/tmcl/instances/"; var OWN_URL = HOST_PREF + "isidorus"; -var SUMMARY_URL = HOST_PREF + "json/summary" +var SUMMARY_URL = HOST_PREF + "json/summary"; var MARK_AS_DELETED_URL = HOST_PREF + "mark-as-deleted"; -var TM_OVERVIEW = "/json/tmcl/overview/"; +var TM_OVERVIEW = HOST_PREF + "json/tmcl/overview/"; var TIMEOUT = 10000; // const TIMEOUT = 10000 --> "const" doesn't work under IE