Changeset 4851 for branches/2.3/expressoMail1_2/js/filter.js
- Timestamp:
- 07/25/11 08:33:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/expressoMail1_2/js/filter.js
r4770 r4851 46 46 var cont1 = parseInt(0); 47 47 var cont2 = parseInt(0); 48 48 49 49 if( _this.rulest.length == 0 ) 50 50 { 51 51 var handler_sieve = function(data) 52 52 { 53 if (data.toString().indexOf('Error:') == 0) 54 { 53 if(data.toString().indexOf('Error:') == 0) 54 { 55 55 56 _this.criticalError = true; 56 57 alert(get_lang('The filters service is out of service, try again later...')); … … 68 69 } 69 70 } 70 _this.out_officeR = data.vacation[0]; 71 _this.out_officeR = _this.out_officeR ? trim(_this.out_officeR.toString().replace("\n","")) : ""; 72 if(data.mode.length > 0){_this.mode_in = data.mode[0];} 71 if(typeof(data.vacation[0]) == 'undefined'){ 72 _this.out_officeR = ""; 73 } 74 else 75 _this.out_officeR = url_decode_s(data.vacation[0]); 73 76 } 74 77 catch(e){ 75 78 _this.criticalError = true; 76 alert(get_lang('The filters service is out of service, try again later...')); 77 } 79 alert(get_lang('==> The filters service is out of service, try again later...')); 80 } 81 if(data.mode.length > 0){_this.mode_in = data.mode[0];} 78 82 if (typeof(posHandler) == 'function') 79 83 posHandler(param); … … 407 411 var createFilter = function (param){ 408 412 if (filter.criticalError){ 409 alert(get_lang('The filters service is out of service, try again later...')); 413 alert(get_lang('The filters service is out of service, try again later...')); 410 414 return false; 411 415 } … … 454 458 455 459 cfilter.prototype.delete_r = function(){ 456 457 460 // rule 458 461 var _this = this; … … 485 488 //Save outoffice in prefs: 486 489 connector.loadScript("preferences"); 487 if(typeof(prefe) == 'undefined') 490 if(typeof(prefe) == 'undefined'){ 488 491 setTimeout("filter.delete_r();",500); 492 } 489 493 else 490 494 prefe.save("outoffice", _this.out_officeF); … … 513 517 _this.rulesVoip[i] = aux; 514 518 } 515 } 516 517 _this.reload_rules(); 519 } 520 521 _this.reload_rules() 518 522 } 519 523 … … 824 828 } 825 829 830 connector.loadScript("preferences"); 826 831 // build object 827 832 var filter;
Note: See TracChangeset
for help on using the changeset viewer.