- Timestamp:
- 05/14/10 17:34:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/jabberit_messenger/trophy_expresso/js/trophyim.js
r2787 r2791 247 247 } 248 248 249 if ( !TrophyIM.statusConn.connected)249 if ( !TrophyIM.statusConn.connected ) 250 250 { 251 251 TrophyIM.cookies = TrophyIM.getCookies(); … … 253 253 //Load other .js scripts needed 254 254 document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'js/strophe.min.js')); 255 //document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'js/strophe.js'));256 255 document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'js/json2.js')); //Keep this script last 257 256 … … 319 318 loadscript.rosterDiv(); 320 319 321 if ( loadscript.getUserCurrent() != null ) 320 // Get User Current; 321 var _getUserCurrent = loadscript.getUserCurrent(); 322 323 setTimeout(function() 322 324 { 323 TrophyIM.login( Base64.decode(loadscript.getUserCurrent().jid), Base64.decode(loadscript.getUserCurrent().password)); 324 } 325 else 326 { 327 loadscript.loginPage(); 328 } 325 if ( _getUserCurrent != null ) 326 TrophyIM.login( Base64.decode( _getUserCurrent.jid ), Base64.decode( _getUserCurrent.password )); 327 else 328 loadscript.loginPage(); 329 }, 200); 329 330 } 330 331 } … … 384 385 login : function() 385 386 { 386 if ( TrophyIM.JSONStore.store_working)387 if ( TrophyIM.JSONStore.store_working ) 387 388 { 388 389 //In case they never logged out … … 404 405 else 405 406 { 407 406 408 var barejid = document.getElementById('trophyimjid').value 407 409 var fulljid = barejid + TROPHYIM_RESOURCE; … … 414 416 { 415 417 button.value = 'disconnect'; 416 TrophyIM.connection.connect(fulljid, password, TrophyIM.onConnect); 417 } 418 else 419 { 420 button.value = 'connect'; 421 TrophyIM.connection.disconnect(); 418 //TrophyIM.connection.connect( fulljid , password, TrophyIM.onConnect ); 419 420 TrophyIM.login( barejid, password ); 421 _winBuild('window_login_page', 'remove'); 422 422 } 423 423 }
Note: See TracChangeset
for help on using the changeset viewer.