From 6f079094d261a1f448da9cd03266b3f61821a67a Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 12 Feb 2014 09:34:46 -0500
Subject: [PATCH] Fix issue where multi-select fields were not visible in new filter action rows (#1489600)

---
 plugins/managesieve/Changelog      |    3 ++-
 plugins/managesieve/managesieve.js |    5 +++++
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/plugins/managesieve/Changelog b/plugins/managesieve/Changelog
index bbce127..8d40f19 100644
--- a/plugins/managesieve/Changelog
+++ b/plugins/managesieve/Changelog
@@ -1,10 +1,11 @@
 - Nicely handle server-side modification of script names (#1489412)
 - Add Filters tab/section using plugin API hook
 - Fix issue where folder selector wasn't visible on new filter form
+- Fix issue where multi-select fields were not visible in new filter action rows (#1489600)
 
 * version 7.1 [2013-11-22]
 -----------------------------------------------------------
-- lib/Net Sieve.php moved to Roundcube /lib directory
+- lib/Net_Sieve.php moved to Roundcube /lib directory
 - Added managesieve_domains option to limit redirect destinations
 - Fix bug where at least one additional address of vacation message was required (#1489345)
 - Fix so i;ascii-numeric comparator is not forced as default for :count and :value operators
diff --git a/plugins/managesieve/managesieve.js b/plugins/managesieve/managesieve.js
index 1563702..53696ec 100644
--- a/plugins/managesieve/managesieve.js
+++ b/plugins/managesieve/managesieve.js
@@ -502,6 +502,11 @@
     row.setAttribute('id', 'actionrow'+id);
     row.innerHTML = content;
 
+    // initialize smart list inputs
+    $('textarea[data-type="list"]', row).each(function() {
+      smart_field_init(this);
+    });
+
     this.managesieve_formbuttons(div);
   }
 };

--
Gitblit v1.9.1