Changeset 1662 for sandbox/expresso2.2/calendar
- Timestamp:
- 11/17/09 15:57:19 (15 years ago)
- Location:
- sandbox/expresso2.2/calendar
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/expresso2.2/calendar/inc/class.uicalendar.inc.php
r1645 r1662 5081 5081 '<script type="text/javascript" src="phpgwapi/js/dJSWin/dJSWin.js"></script>'. 5082 5082 "<script src='calendar/js/edit_exmail.js' type='text/javascript'></script>" . 5083 $load_lang_vars. 5084 "<script src='".$module_name."/js/connector.js' type='text/javascript'></script>". 5083 $load_lang_vars. 5085 5084 "<script type='text/javascript'>var DEFAULT_URL = '".$module_name."/controller.php?action=';</script> ". 5086 5085 "<script type='text/javascript'>" . -
sandbox/expresso2.2/calendar/js/edit_exmail.js
r1643 r1662 217 217 function loadScript(scriptPath){ 218 218 219 if(! connector)219 if(!expresso.connector) 220 220 throw new Error("Error : Connector is not loaded."); 221 221 … … 224 224 } 225 225 226 connector.oxmlhttp.open("GET", scriptPath, false);227 connector.oxmlhttp.setRequestHeader('Content-Type','text/plain');228 connector.oxmlhttp.send(null);229 if( connector.oxmlhttp.status != 0 && connector.oxmlhttp.status != 200 || connector.oxmlhttp.status == 0 &&connector.oxmlhttp.responseText.length == 0)230 throw new Error("Error " + connector.oxmlhttp.status + "("+connector.oxmlhttp.statusText+") when loading script file '"+scriptPath+"'");226 expresso.connector.oxmlhttp.open("GET", scriptPath, false); 227 expresso.connector.oxmlhttp.setRequestHeader('Content-Type','text/plain'); 228 expresso.connector.oxmlhttp.send(null); 229 if(expresso.connector.oxmlhttp.status != 0 && expresso.connector.oxmlhttp.status != 200 || expresso.connector.oxmlhttp.status == 0 && expresso.connector.oxmlhttp.responseText.length == 0) 230 throw new Error("Error " + expresso.connector.oxmlhttp.status + "("+expresso.connector.oxmlhttp.statusText+") when loading script file '"+scriptPath+"'"); 231 231 232 232 var head = document.getElementsByTagName("head")[0]; … … 234 234 script.id = 'uploadscript_'+scriptPath; 235 235 script.type = 'text/javascript'; 236 script.text = connector.oxmlhttp.responseText;236 script.text = expresso.connector.oxmlhttp.responseText; 237 237 head.appendChild(script); 238 238 return; -
sandbox/expresso2.2/calendar/templates/default/delegate.tpl
r1646 r1662 3 3 <script src='{url_template}/../../js/edit_exmail.js' type='text/javascript'></script> 4 4 <script src='{module_name}/inc/load_lang.php' type='text/javascript'></script> 5 <script src='{module_name}/js/connector.js' type='text/javascript'></script>6 5 <script type='text/javascript'>var DEFAULT_URL = '{module_name}/controller.php?action=';</script> 7 6 <font color="#FF0000">{error_msg}</font>
Note: See TracChangeset
for help on using the changeset viewer.