Ignore:
Timestamp:
04/27/10 11:38:25 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #986 - Correcao para compatibilizar o carregamento do script para o IE.

File:
1 edited

Legend:

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

    r2629 r2636  
    351351        { 
    352352                var oldTitle    = document.title;  
    353                 var newTitle    = " ## NOVA MENSAGEM ## ";  
     353                var newTitle    = "## NOVA MENSAGEM ##";  
    354354                var idWindow    = arguments[1]; 
    355                  
    356                 if( timeoutId == null) 
     355 
     356                if( timeoutId == null ) 
    357357                { 
    358358                        timeoutId = setInterval(function() 
    359                         {  
    360                                 document.title = document.title == newTitle ? ' ' : newTitle; 
    361                                  
     359                        { 
     360                                document.title = ( document.title == newTitle ) ? oldTitle : newTitle; 
    362361                        }, 1000); 
    363362                         
    364                         configEvents( window, 'onclick', function() 
     363                        configEvents( window.document, 'onclick', function() 
    365364                        {  
    366365                                clearInterval(timeoutId); 
     
    369368                        }); 
    370369                         
    371                         configEvents( window, 'onkeypress', function() 
     370                        configEvents( window.document, 'onkeypress', function() 
    372371                        {  
    373372                                clearInterval(timeoutId); 
Note: See TracChangeset for help on using the changeset viewer.