|
|
|
@ -552,14 +552,16 @@ const Feeds = {
|
|
|
|
|
return tree.model.store.getValue(nuf, 'bare_id');
|
|
|
|
|
},
|
|
|
|
|
search: function() {
|
|
|
|
|
const query = "backend.php?op=feeds&method=search¶m=" +
|
|
|
|
|
encodeURIComponent(Feeds.getActive() + ":" + Feeds.activeIsCat());
|
|
|
|
|
|
|
|
|
|
if (dijit.byId("searchDlg"))
|
|
|
|
|
dijit.byId("searchDlg").destroyRecursive();
|
|
|
|
|
|
|
|
|
|
xhrPost("backend.php",
|
|
|
|
|
{op: "feeds", method: "search",
|
|
|
|
|
param: Feeds.getActive() + ":" + Feeds.activeIsCat()},
|
|
|
|
|
(transport) => {
|
|
|
|
|
const dialog = new dijit.Dialog({
|
|
|
|
|
id: "searchDlg",
|
|
|
|
|
content: transport.responseText,
|
|
|
|
|
title: __("Search"),
|
|
|
|
|
style: "width: 600px",
|
|
|
|
|
execute: function () {
|
|
|
|
@ -574,7 +576,6 @@ const Feeds = {
|
|
|
|
|
Feeds.reloadCurrent();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
href: query
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const tmph = dojo.connect(dialog, 'onLoad', function () {
|
|
|
|
@ -593,6 +594,8 @@ const Feeds = {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
dialog.show();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
updateRandom: function() {
|
|
|
|
|
console.log("in update_random_feed");
|
|
|
|
|