Ignore:
Timestamp:
03/05/08 08:46:58 (16 years ago)
Author:
niltonneto
Message:

Ticket #147: Revisão da internacionalização
Ticket #152: Melhoria no Fora de Escritório
Implementação da funcao write_msg com a opção de não apagar aviso.
Implementação da funcao clean_msg para limpar aviso.

File:
1 edited

Legend:

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

    r174 r197  
    225225 
    226226var setTimeout_write_msg = 0; 
    227 function write_msg(msg){ 
    228         /*Element("user_info").innerHTML = msg; 
    229         setTimeout("Element('user_info').innerHTML = '"+td_userInfo+"'", 5000);*/ 
     227var old_msg = false; 
     228// Funcao usada para escrever mensagem 
     229// notimeout = True : mensagem nao apaga 
     230function write_msg(msg, notimeout){      
    230231         
    231232        if (setTimeout_write_msg) 
     
    249250        handle_write_msg = function(){ 
    250251                try{ 
    251                         msg_div.style.display = 'none'; 
    252                         old_divStatusBar.style.display = '';             
     252                        if(!old_msg) 
     253                                clean_msg(); 
     254                        else 
     255                                write_msg(old_msg, true);                        
    253256                } 
    254257                catch(e){} 
    255258        } 
    256         setTimeout_write_msg = setTimeout("handle_write_msg();", 5000); 
     259        if(notimeout) 
     260                old_msg = msg; 
     261        else 
     262                setTimeout_write_msg = setTimeout("handle_write_msg();", 5000); 
     263} 
     264// Funcao usada para apagar mensagem sem timeout 
     265function clean_msg(){ 
     266        old_msg = false; 
     267        var msg_div = Element('em_div_write_msg'); 
     268        var old_divStatusBar = Element("divStatusBar"); 
     269        if(msg_div) 
     270                msg_div.style.display = 'none'; 
     271        old_divStatusBar.style.display = '';     
    257272} 
    258273 
     
    261276        to = to.replace(">",">"); 
    262277        block_quoted_body ="<br><br>"; 
    263         block_quoted_body += date_day + " " + get_lang("at") + date_hour + ", " + to + " "+get_lang("wrote")+":"; 
     278        block_quoted_body += get_lang('At %1, %2 hours, %3 wrote:', date_day, date_hour, to); 
    264279        block_quoted_body += "<blockquote style=\"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;\">"; 
    265280        block_quoted_body += body; 
Note: See TracChangeset for help on using the changeset viewer.