Changeset 197 for trunk/expressoMail1_2/js/filters.js
- Timestamp:
- 03/05/08 08:46:58 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/filters.js
r128 r197 30 30 form_cont.style.display = ""; 31 31 form_cont.style.position = "absolute"; 32 form_cont.style.top = " 0px";32 form_cont.style.top = "10px"; 33 33 form_cont.style.left = "600px"; 34 34 form_cont.innerHTML = ""; … … 91 91 list += "</div><br>"; 92 92 // out office 93 if( filter.out_officeR.length == 0){93 if(!filter.out_officeR){ 94 94 list += "<img id='set_out_img' src='"+this.grp_close_img.src+"' border='0'> "; 95 95 list += "<span><b>"+get_lang('out office') + " - ( 0 ) </b></span> " + "<a href='javascript:filters.n_out_office()'>" + get_lang("new rule") + "</a>"; 96 96 }else{ 97 97 list += "<img id='set_out_img' src='"+this.grp_open_img.src+"' onclick=filters.hidden(\"set_out\") border='0'> "; 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>"; 99 99 list += "<div id='set_out'>"; 100 100 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) + " " ; 102 102 list += "</div>"; 103 103 } … … 107 107 cfilterSh.prototype.vl_rule = function(rule,pos){ 108 108 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>"; 110 110 } 111 111 112 cfilterSh.prototype.vl_outOffice = function(outOffice){ 112 cfilterSh.prototype.vl_outOffice = function(outOffice){ 113 113 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>"; 115 115 } 116 116 … … 131 131 Element('form_buttons').style.display = 'none'; 132 132 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 } 139 134 140 135 cfilterSh.prototype.hidden = function(el){
Note: See TracChangeset
for help on using the changeset viewer.