summaryrefslogtreecommitdiff
path: root/plugins/managesieve/managesieve.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-04-18 03:02:14 -0400
committerAleksander Machniak <alec@alec.pl>2015-04-18 03:02:14 -0400
commit224a1b19cba933ca1495a756cc3f5f23db09e956 (patch)
tree7adaccfc6d45e1e4cd586f273eb2e4a7194ae415 /plugins/managesieve/managesieve.js
parent5b737d9f8ddd185db1f316d2922dcbcc654706b6 (diff)
Fix incorrect filter data after filter delete (#1490356)
Fix missing position idicator in Larry skin when dragging a filter
Diffstat (limited to 'plugins/managesieve/managesieve.js')
-rw-r--r--plugins/managesieve/managesieve.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/managesieve/managesieve.js b/plugins/managesieve/managesieve.js
index 4d60833be..f0b5dc83e 100644
--- a/plugins/managesieve/managesieve.js
+++ b/plugins/managesieve/managesieve.js
@@ -226,7 +226,6 @@ rcube_webmail.prototype.managesieve_updatelist = function(action, o)
this.set_busy(true);
switch (action) {
-
// Delete filter row
case 'del':
var id = o.id, list = this.filters_list;
@@ -250,8 +249,10 @@ rcube_webmail.prototype.managesieve_updatelist = function(action, o)
$(this).unbind();
// update row id
- if (rowid > id)
- $(this).attr('id', 'rcmrow' + (rowid-1));
+ if (rowid > id) {
+ this.uid = rowid - 1;
+ $(this).attr('id', 'rcmrow' + this.uid);
+ }
});
list.init();