summaryrefslogtreecommitdiff
path: root/plugins/managesieve/managesieve.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-07-23 10:24:16 +0200
committerAleksander Machniak <alec@alec.pl>2012-07-23 10:24:16 +0200
commitebb204793b976482ce7d729b3c7e9e1069b9e56e (patch)
tree507302342d32be69687be7c852a73430c7c34882 /plugins/managesieve/managesieve.js
parent114cf1281b1546f1efb8f78f92b179dd6afcaaa9 (diff)
Added GUI for variables setting - RFC5229 (patch from Paweł Słowik)
Diffstat (limited to 'plugins/managesieve/managesieve.js')
-rw-r--r--plugins/managesieve/managesieve.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/managesieve/managesieve.js b/plugins/managesieve/managesieve.js
index 61883f6d2..f447719a2 100644
--- a/plugins/managesieve/managesieve.js
+++ b/plugins/managesieve/managesieve.js
@@ -638,7 +638,8 @@ function action_type_select(id)
target: document.getElementById('action_target' + id),
target_area: document.getElementById('action_target_area' + id),
flags: document.getElementById('action_flags' + id),
- vacation: document.getElementById('action_vacation' + id)
+ vacation: document.getElementById('action_vacation' + id),
+ set: document.getElementById('action_set' + id)
};
if (obj.value == 'fileinto' || obj.value == 'fileinto_copy') {
@@ -656,6 +657,9 @@ function action_type_select(id)
else if (obj.value == 'vacation') {
enabled.vacation = 1;
}
+ else if (obj.value == 'set') {
+ enabled.set = 1;
+ }
for (var x in elems) {
elems[x].style.display = !enabled[x] ? 'none' : 'inline';