search dialog: populate current search values onShow instead of onLoad because the dialog is preloaded via xhr

This commit is contained in:
Andrew Dolgov 2020-12-23 12:09:34 +03:00
parent 6da576dbe4
commit 57f36f3f97
1 changed files with 2 additions and 1 deletions

View File

@ -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) {