Changeset 246 for trunk/expressoMail1_2/js/filter.js
- Timestamp:
- 03/25/08 15:21:49 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/filter.js
r206 r246 313 313 if(confirm(get_lang("Do you want to block this e-mail?"))){ 314 314 new_r = "&&ENABLED&&" + email + "&&&&&&discard&&&&0&&&&&&0"; 315 setTimeout("filter.e_newrule('" + new_r + "')",2000); 316 this.email_deny.push(email); 317 write_msg(get_lang("The sender was blocked")); 315 // setTimeout("filter.e_newrule('" + new_r + "')",2000); 316 if (filter.e_newrule(new_r)){ 317 this.email_deny.push(email); 318 write_msg(get_lang("This sender was blocked")); 319 }else 320 write_msg(get_lang("You have reached the maximum number of rules")); 318 321 } 319 322 } … … 322 325 323 326 var new_rl = ""; 327 if (this.rulest.length >= rules_limit) 328 return false; 329 324 330 if(this.rulest.length == 0){ 325 331 new_rl = "#rule&&1" + nw_rule; … … 330 336 this.rulest.push(new_rl); 331 337 this.saved_all(); 338 return true; 332 339 } 333 340
Note: See TracChangeset
for help on using the changeset viewer.