From 98c489e9f49de6a4442821614d5e69b36173eeab Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 18 Mar 2010 08:53:32 +0000 Subject: - Managesieve: Added import from Horde-INGO - Managesieve: Support for more than one match using if+stop instead of if+elsif structures (#1486078) - Managesieve: Support for selectively disabling rules within a single sieve script (#1485882) - Managesieve: Added vertical splitter --- plugins/managesieve/managesieve.js | 39 +++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) (limited to 'plugins/managesieve/managesieve.js') diff --git a/plugins/managesieve/managesieve.js b/plugins/managesieve/managesieve.js index 99b820f4e..08954c1c2 100644 --- a/plugins/managesieve/managesieve.js +++ b/plugins/managesieve/managesieve.js @@ -26,9 +26,10 @@ if (window.rcmail) { if (rcmail.env.action == 'plugin.managesieve') { - if (rcmail.gui_objects.sieveform) + if (rcmail.gui_objects.sieveform) { rcmail.enable_command('plugin.managesieve-save', true); - else { + } + else { rcmail.enable_command('plugin.managesieve-del', 'plugin.managesieve-up', 'plugin.managesieve-down', false); rcmail.enable_command('plugin.managesieve-add', 'plugin.managesieve-setadd', !rcmail.env.sieveconnerror); @@ -47,6 +48,8 @@ if (window.rcmail) { rcmail.filters_list.focus(); } } + if (rcmail.gui_objects.sieveform && rcmail.env.rule_disabled) + $('#disabled').attr('checked', true); }); /*********************************************************/ @@ -91,7 +94,7 @@ if (window.rcmail) { return i; } - rcube_webmail.prototype.managesieve_updatelist = function(action, name, id) + rcube_webmail.prototype.managesieve_updatelist = function(action, name, id, disabled) { this.set_busy(true); @@ -114,7 +117,7 @@ if (window.rcmail) { case 'down': var rows = this.filters_list.rows; - var from; + var from, fromstatus, status; // we need only to replace filter names... for (var i=0; i