Ignore:
Timestamp:
05/21/10 09:45:24 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #986 - Corrigido o carregamento automatico evitando que o usuario clique e faça uma nova conexao

Location:
sandbox/jabberit_messenger/trophy_expresso/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox/jabberit_messenger/trophy_expresso/js/jscode/loadIM.js

    r2826 r2834  
    183183 
    184184                        // Add event onclick element _statusJabber 
    185                         configEvents( _statusJabber, 'onclick', function(){ TrophyIM.load();}); 
     185                        if( _preferencesIM[0] == "openWindowJabberit:true" ) 
     186                        { 
     187                                configEvents( _statusJabber, 'onclick', function(){ rosterDiv(); }); 
     188                        } 
     189                        else 
     190                        { 
     191                                configEvents( _statusJabber, 'onclick', function(){ TrophyIM.load(); }); 
     192                        } 
    186193                } 
    187194        } 
  • sandbox/jabberit_messenger/trophy_expresso/js/trophyim.js

    r2828 r2834  
    253253                        //Load other .js scripts needed 
    254254                        document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'js/strophe.min.js')); 
    255                         document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'js/json2.js')); //Keep this script last 
     255                        document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'js/json2.js')); 
    256256                         
    257257                        //Wait a second to give scripts time to load 
     
    263263                } 
    264264   }, 
    265     
    266     /** Function: storeData 
     265 
     266   /** Function: storeData 
    267267     * 
    268268     *  Store all our data in the JSONStore, if it is active 
Note: See TracChangeset for help on using the changeset viewer.