summaryrefslogtreecommitdiff
path: root/js/Feeds.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-12-23 12:09:34 +0300
committerAndrew Dolgov <[email protected]>2020-12-23 12:09:34 +0300
commit57f36f3f971a0b6eaf13d06acc11cc49e9d95252 (patch)
tree75b98929f9970fdcd1c436d712403fd3e2a053fd /js/Feeds.js
parent6da576dbe4dd933cc385569fbaab234cae21efff (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.js3
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) {