Ignore:
Timestamp:
05/07/10 15:46:41 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #986 - Correcao para alguns erros de carregamento do javascript.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/jabberit_messenger/trophy_expresso/js/trophyim.js

    r2736 r2737  
    242242        load : function() 
    243243        { 
    244                 loadscript.setUserCurrent(); 
    245          
     244        if( loadscript.getUserCurrent() == null ) 
     245        { 
     246                loadscript.setUserCurrent();      
     247        }         
     248 
    246249        if (!TrophyIM.statusConn.connected) 
    247250                { 
     
    252255                        document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'js/strophe.js')); 
    253256                        document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'js/json2.js')); //Keep this script last 
     257                         
    254258                        //Wait a second to give scripts time to load 
    255                         setTimeout("TrophyIM.showLogin()", 500); 
     259                        setTimeout( "TrophyIM.showLogin()", 550 ); 
    256260                } 
    257261                else 
     
    285289    showLogin : function() 
    286290        { 
    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 
    289298        if (typeof(JSON) != undefined && typeof(Strophe) != undefined) 
    290299        { 
Note: See TracChangeset for help on using the changeset viewer.