Changeset 2657 for trunk/expressoMail1_2/js/jscode/filter.js
- Timestamp:
- 04/28/10 18:06:48 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/jscode/filter.js
r2519 r2657 11 11 function cfilter(){ 12 12 13 this.criticalError = false; 13 14 this.mode_in = ""; 14 15 this.rulest = new Array; … … 51 52 var handler_sieve = function(data) 52 53 { 54 if (data.indexOf('Error:') == 0) 55 { 56 _this.criticalError = true; 57 alert(data); 58 } 59 else 60 try{ 53 61 if(data.rule.length > 0){ 54 62 for(var i=0 ; i < data.rule.length; i++) … … 64 72 _this.out_officeR = _this.out_officeR ? trim(_this.out_officeR.toString().replace("\n","")) : ""; 65 73 if(data.mode.length > 0){_this.mode_in = data.mode[0];} 74 } 75 catch(e){ 76 _this.criticalError = true; 77 alert("Expresso:"+e.description); 78 } 66 79 } 67 80 if(Element('form_status') != null) … … 745 758 var args = "expressoMail1_2.ScriptS.rec_rules"; 746 759 var params = "arfilter="+aux_rul; 747 cExecute(args,h_filter,params); 760 if(!_this.criticalError) 761 cExecute(args,h_filter,params); 748 762 } 749 763
Note: See TracChangeset
for help on using the changeset viewer.