diff options
author | Andrew Dolgov <[email protected]> | 2020-12-23 12:09:34 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-12-23 12:09:34 +0300 |
commit | 57f36f3f971a0b6eaf13d06acc11cc49e9d95252 (patch) | |
tree | 75b98929f9970fdcd1c436d712403fd3e2a053fd /js/Feeds.js | |
parent | 6da576dbe4dd933cc385569fbaab234cae21efff (diff) |
search dialog: populate current search values onShow instead of onLoad because the dialog is preloaded via xhr
Diffstat (limited to 'js/Feeds.js')
-rw-r--r-- | js/Feeds.js | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |