diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2024-10-15 19:58:52 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2024-10-15 19:58:52 +0300 |
| commit | 5ea96397c08bb7e960a0eb2c2687073dc92c0ad3 (patch) | |
| tree | 99bd493788620c4746ac4391c87c583ea928a366 /js/App.js | |
| parent | a58a0cd888fc267d0ee1174f799a86d5fe0bc860 (diff) | |
properly support search queries in viewfeed debugger, improve some debugging messages and output
Diffstat (limited to 'js/App.js')
| -rw-r--r-- | js/App.js | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -1158,8 +1158,20 @@ const App = { }; this.hotkey_actions["feed_debug_viewfeed"] = () => { - App.postOpenWindow("backend.php", {op: "Feeds", method: "view", - feed: Feeds.getActive(), timestamps: 1, debug: 1, cat: Feeds.activeIsCat(), csrf_token: __csrf_token}); + + let query = { + ...{op: "Feeds", method: "view", feed: Feeds.getActive(), timestamps: 1, + debug: 1, cat: Feeds.activeIsCat(), csrf_token: __csrf_token}, + ...dojo.formToObject("toolbar-main") + }; + + if (Feeds._search_query) { + query = Object.assign(query, Feeds._search_query); + } + + console.log('debug_viewfeed', query); + + App.postOpenWindow("backend.php", query); }; this.hotkey_actions["feed_edit"] = () => { |