Ignore:
Timestamp:
03/05/08 08:46:58 (17 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/filters.js

    r128 r197  
    3030                form_cont.style.display = "";                    
    3131                form_cont.style.position = "absolute"; 
    32                 form_cont.style.top = "0px"; 
     32                form_cont.style.top = "10px"; 
    3333                form_cont.style.left = "600px"; 
    3434                form_cont.innerHTML = ""; 
     
    9191                list += "</div><br>"; 
    9292                // out office 
    93                 if(filter.out_officeR.length == 0){ 
     93                if(!filter.out_officeR){ 
    9494                        list += "<img id='set_out_img' src='"+this.grp_close_img.src+"' border='0'>&nbsp;"; 
    9595                        list += "<span><b>"+get_lang('out office') + " - ( 0 ) </b></span> " + "<a href='javascript:filters.n_out_office()'>" + get_lang("new rule") + "</a>";                   
    9696                }else{ 
    9797                        list += "<img id='set_out_img' src='"+this.grp_open_img.src+"' onclick=filters.hidden(\"set_out\") border='0'>&nbsp;"; 
    98                         list += "<span><b>"+get_lang('out office') + " - ( " + filter.out_officeR.length + " )</b></span>"; 
     98                        list += "<span><b>"+get_lang('out office') + " - ( 1 )</b></span>"; 
    9999                        list += "<div id='set_out'>"; 
    100100                        list += "<input id='out_0' type='checkBox'><img id='set_out_form_email_img' src='"+this.for_email_img.src+"' border='0'>"; 
    101                         list += " " + this.vl_outOffice(filter.out_officeR[0]) + " " ; 
     101                        list += " " + this.vl_outOffice(filter.out_officeR) + " " ; 
    102102                        list += "</div>"; 
    103103                } 
     
    107107        cfilterSh.prototype.vl_rule = function(rule,pos){ 
    108108                var aux = rule.split("&&"); 
    109                 return " <a href='javascript:void(0)' onclick=filter.form_r('"+pos+"')><b>" + get_lang("Status") + " :</b>" + "<font color='red'>" + get_lang(aux[2]) + "</font>" + "- <b>" + get_lang("E-mail rule") + ":</b> " + aux[3] + " - <b>" + get_lang("Action") + ":</b> " + aux[6] + "</a>"; 
     109                return " <a href='javascript:void(0)' onclick=filter.form_r('"+pos+"')><b>" + get_lang("Status") + " : </b>" + "<font color='red'>" + get_lang(aux[2]) + "</font>" + " - <b>" + get_lang("E-mail rule") + ":</b> " + aux[3] + " - <b>" + get_lang("Action") + ":</b> " + aux[6] + "</a>"; 
    110110        } 
    111111         
    112         cfilterSh.prototype.vl_outOffice = function(outOffice){ 
     112        cfilterSh.prototype.vl_outOffice = function(outOffice){          
    113113                var aux = outOffice.split("&&"); 
    114                 return " <a href='javascript:void(0)' onclick=filter.form_out()><b>" + get_lang("Answer messages from") + " :</b>" + aux[2] + "- <b>" + get_lang("Status") + " : </b>" + "<font color='red'>" + aux[4] + "</font>" + "- <b>" + get_lang("message") + ":</b> " + aux[3] + "</a>"; 
     114                return get_lang("Rule") + " - <a href='javascript:void(0)' onclick=filter.form_out()> " + "<b>" + get_lang("Status") + " : </b><font color='red'>" + (aux[4] == "off" ? get_lang("Disabled") : get_lang("Enabled")) + "</font></a>"; 
    115115        } 
    116116         
     
    131131                Element('form_buttons').style.display = 'none'; 
    132132                filter.ac_form = "new_out";      
    133                 var el2 = document.getElementById("select_2"); 
    134                 for(var i=0; i < filter.email_ld.length; i++){ 
    135                         var opt = new Option(filter.email_ld[i],filter.email_ld[i],false,false); 
    136                         el2.options[el2.length] = opt; 
    137                 }                        
    138         } 
     133                } 
    139134 
    140135        cfilterSh.prototype.hidden = function(el){ 
Note: See TracChangeset for help on using the changeset viewer.