summaryrefslogtreecommitdiff
path: root/plugins/managesieve/managesieve.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-11-22 09:21:36 +0100
committerAleksander Machniak <alec@alec.pl>2013-11-22 09:21:36 +0100
commit78ef00f12def4d76cec708a5e436d83c75ee3c91 (patch)
treeffaef5ab453ffe20346154f79dfbd42c0c8a68a9 /plugins/managesieve/managesieve.js
parent3ab616c7425afed0e4462f89d3bde1723ac471e5 (diff)
Fix a bug where deleted filter was not removed from the list
(because now list widget's 'rows' property is of type object not array)
Diffstat (limited to 'plugins/managesieve/managesieve.js')
-rw-r--r--plugins/managesieve/managesieve.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/managesieve/managesieve.js b/plugins/managesieve/managesieve.js
index fa13b7125..22a50ba4d 100644
--- a/plugins/managesieve/managesieve.js
+++ b/plugins/managesieve/managesieve.js
@@ -161,7 +161,7 @@ rcube_webmail.prototype.managesieve_rowid = function(id)
{
var i, rows = this.filters_list.rows;
- for (i=0; i<rows.length; i++)
+ for (i in rows)
if (rows[i] != null && rows[i].uid == id)
return i;
};