From 224a1b19cba933ca1495a756cc3f5f23db09e956 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sat, 18 Apr 2015 03:02:14 -0400
Subject: [PATCH] Fix incorrect filter data after filter delete (#1490356) Fix missing position idicator in Larry skin when dragging a filter
---
plugins/managesieve/Changelog | 2 ++
plugins/managesieve/skins/larry/managesieve.css | 4 ++--
plugins/managesieve/managesieve.js | 7 ++++---
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/plugins/managesieve/Changelog b/plugins/managesieve/Changelog
index dba0be2..628725c 100644
--- a/plugins/managesieve/Changelog
+++ b/plugins/managesieve/Changelog
@@ -1,4 +1,6 @@
- Add option to define default vacation interval
+- Fix missing position idicator in Larry skin when dragging a filter
+- Fix incorrect filter data after filter delete (#1490356)
* version 8.3 [2015-03-12]
-----------------------------------------------------------
diff --git a/plugins/managesieve/managesieve.js b/plugins/managesieve/managesieve.js
index 4d60833..f0b5dc8 100644
--- a/plugins/managesieve/managesieve.js
+++ b/plugins/managesieve/managesieve.js
@@ -226,7 +226,6 @@
this.set_busy(true);
switch (action) {
-
// Delete filter row
case 'del':
var id = o.id, list = this.filters_list;
@@ -250,8 +249,10 @@
$(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();
diff --git a/plugins/managesieve/skins/larry/managesieve.css b/plugins/managesieve/skins/larry/managesieve.css
index 47e992c..aa502a0 100644
--- a/plugins/managesieve/skins/larry/managesieve.css
+++ b/plugins/managesieve/skins/larry/managesieve.css
@@ -67,13 +67,13 @@
#filterslist tbody tr.filtermoveup td
{
- border-top: 2px dotted #555;
+ border-top: 2px dotted #555 !important;
padding-top: 5px;
}
#filterslist tbody tr.filtermovedown td
{
- border-bottom: 2px dotted #555;
+ border-bottom: 2px dotted #555 !important;
padding-bottom: 4px;
}
--
Gitblit v1.9.1