From 57f36f3f971a0b6eaf13d06acc11cc49e9d95252 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Dec 2020 12:09:34 +0300 Subject: [PATCH] search dialog: populate current search values onShow instead of onLoad because the dialog is preloaded via xhr --- js/Feeds.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/Feeds.js b/js/Feeds.js index 98db500aa..ccb982cb3 100644 --- a/js/Feeds.js +++ b/js/Feeds.js @@ -562,6 +562,7 @@ const Feeds = { {op: "feeds", method: "search", param: Feeds.getActive() + ":" + Feeds.activeIsCat()}, (transport) => { + const dialog = new dijit.Dialog({ id: "searchDlg", content: transport.responseText, @@ -581,7 +582,7 @@ const Feeds = { }, }); - const tmph = dojo.connect(dialog, 'onLoad', function () { + const tmph = dojo.connect(dialog, 'onShow', function () { dojo.disconnect(tmph); if (Feeds._search_query) {