Changeset 171


Ignore:
Timestamp:
02/26/08 17:01:46 (16 years ago)
Author:
niltonneto
Message:
 
Location:
trunk/instant_messenger/js
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/instant_messenger/js/jabber.js

    r164 r171  
    194194                                        im.ldap_photo(from + "_avatar"); 
    195195                                } 
     196                                im.newMessageNotification(); 
    196197                        } 
    197198                } 
  • trunk/instant_messenger/js/load.js

    r164 r171  
    1     window.document.onmouseover = awayTimer; 
    2      
     1        var focusFlag = true; 
     2         
     3        window.document.onblur  = windowBlur; 
     4        window.document.onclick = windowFocus; 
     5        window.document.onmouseover     = awayTimer; 
     6         
     7        var window_title = document.title; 
     8 
    39    var _awayTimer_     = null; 
    410        var cod_emotions = { 
     
    2026        { 
    2127                im_window.load('_contacts_im_','instant_messenger_content', '<title>Expresso Messenger</title>', 'window.xsl','',true,true,true); 
    22                 //im_window.visible('_contacts_im_','block'); 
    2328        } 
    2429         
     
    4954                _awayTimer_ = setTimeout("im.set_timeOut()", parseInt(im.timeOut_im) * 60000 ); 
    5055        } 
    51          
     56 
     57        function windowBlur()  
     58        { 
     59                try 
     60                { 
     61                        focusFlag = false;  
     62                        document.title = window_title; 
     63                }catch(e){} 
     64        } 
     65 
     66        function windowFocus() 
     67        { 
     68                try 
     69                { 
     70                        focusFlag = true;  
     71                        document.title = window_title; 
     72                }catch(e){} 
     73        } 
     74 
    5275        shortcut_im();                   
    5376        awayTimer(); 
Note: See TracChangeset for help on using the changeset viewer.