Changeset 2737 for sandbox/jabberit_messenger
- Timestamp:
- 05/07/10 15:46:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/jabberit_messenger/trophy_expresso/js/trophyim.js
r2736 r2737 242 242 load : function() 243 243 { 244 loadscript.setUserCurrent(); 245 244 if( loadscript.getUserCurrent() == null ) 245 { 246 loadscript.setUserCurrent(); 247 } 248 246 249 if (!TrophyIM.statusConn.connected) 247 250 { … … 252 255 document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'js/strophe.js')); 253 256 document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'js/json2.js')); //Keep this script last 257 254 258 //Wait a second to give scripts time to load 255 setTimeout( "TrophyIM.showLogin()", 500);259 setTimeout( "TrophyIM.showLogin()", 550 ); 256 260 } 257 261 else … … 285 289 showLogin : function() 286 290 { 287 //JSON is the last script to load, so we wait on it 288 //Added Strophe check too because of bug where it's sometimes missing 291 /** 292 * 293 * JSON is the last script to load, so we wait on it 294 * Added Strophe check too because of bug where it's sometimes missing 295 * 296 */ 297 289 298 if (typeof(JSON) != undefined && typeof(Strophe) != undefined) 290 299 {
Note: See TracChangeset
for help on using the changeset viewer.