Changeset 447


Ignore:
Timestamp:
09/18/08 16:45:07 (16 years ago)
Author:
niltonneto
Message:
  • Verificação de element nulo no onresizewindow
  • Alteração no div que informa as operações, para que o ícone

do Jabber não seja escondido quando houver uma mensagem.
Ex. (Fora de escritório ativado, icone some definitivamente).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/common_functions.js

    r412 r447  
    5151                } 
    5252        } 
    53         Element('content_folders').style.height = defaultHeight - (is_ie ? 165 : 150); 
     53        if(Element('content_folders')) 
     54                Element('content_folders').style.height = defaultHeight - (is_ie ? 165 : 150); 
    5455        if(Element("divScrollMain_"+numBox)) 
    5556                Element("divScrollMain_"+numBox).style.height   = defaultHeight - (is_ie ? 111 : 110);   
     
    310311                msg_div.style.display = 'none'; 
    311312                old_divStatusBar.parentNode.insertBefore(msg_div,old_divStatusBar); 
    312         }        
    313         msg_div.innerHTML = '<table bgcolor="#f7f8fa" width=100% cellspacing="0" cellpadding="0" border="0"><tbody><tr><th width="40%"></th><th noWrap class="action_info_th">'+msg+'</th><th width="40%"></th></tr></tbody></table>'; 
     313        } 
     314         
     315        if( document.getElementById('JabberMessenger')) 
     316        { 
     317                msg_div.innerHTML  = '<div id="jabberWriteMsg"/>'; 
     318                msg_div.innerHTML += '<table bgcolor="#f7f8fa" width="100%" cellspacing="0" cellpadding="0" border="0"><tbody><tr><th width="40%"></th><th noWrap class="action_info_th">'+msg+'</th><th width="40%"></th></tr></tbody></table>'; 
     319                loadscript.adIcon();                             
     320        } 
     321        else 
     322                msg_div.innerHTML = '<table bgcolor="#f7f8fa" width="100%" cellspacing="0" cellpadding="0" border="0"><tbody><tr><th width="40%"></th><th noWrap class="action_info_th">'+msg+'</th><th width="40%"></th></tr></tbody></table>'; 
     323 
    314324        old_divStatusBar.style.display = 'none'; 
    315325        msg_div.style.display = '';      
     
    576586function increment_folder_unseen(){ 
    577587        var folder_id = get_current_folder(); 
     588         
    578589        var folder_unseen = Element('dftree_'+folder_id+'_unseen'); 
    579590        var abas_unseen = Element('new_m').innerHTML; 
     
    593604                abas_unseen = parseInt(abas_unseen) + 1; 
    594605                Element('new_m').innerHTML = '<font style="color:red">' + abas_unseen + '</font>'; 
    595         } 
     606} 
    596607        else{ 
    597608                abas_unseen = Element('new_m').innerHTML; 
     
    603614function decrement_folder_unseen(){ 
    604615        var folder_id = get_current_folder(); 
     616         
    605617        var folder_unseen = Element('dftree_'+folder_id+'_unseen'); 
    606618        var abas_unseen = Element('new_m').innerHTML; 
     
    625637                abas_unseen = (parseInt(abas_unseen) - 1); 
    626638                Element('new_m').innerHTML = '<font style="color:red">' + abas_unseen + '</font>'; 
    627         } 
     639} 
    628640        else if (parseInt(abas_unseen) <= 1) 
    629641        { 
Note: See TracChangeset for help on using the changeset viewer.