From 843afea2d5a6fb5351cc6c3f541a00639a2282e0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 1 Aug 2018 12:06:33 +0200 Subject: [PATCH] Elastic: Close search options form on 'list' request (#6345) --- skins/elastic/ui.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index e642ed87a..03350aa3f 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -1828,6 +1828,11 @@ function rcube_elastic_ui() $(rcmail.gui_objects.foldersfilter).on('change', update_func); } }); + rcmail.addEventListener('beforelist', function() { + if ($(bar).is('.open')) { + options_button.click(); // close options form on 'list' request + } + }); }; /**