diff options
author | Andrew Dolgov <[email protected]> | 2024-06-14 13:47:14 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2024-06-14 13:47:14 +0300 |
commit | cc51487f080166b2a21eb529f1d4fc29994d9ff1 (patch) | |
tree | e87e5ce6c96a233b9f50c8fb456b02834a585ec1 /js | |
parent | 66db7dc0ac996f528f6ff9d71f3cc7ec30d65278 (diff) | |
parent | 9e6684e9277dace834ef10dab21c5b585f291675 (diff) |
Merge branch 'master' into weblate-integration
Diffstat (limited to 'js')
-rw-r--r-- | js/CommonDialogs.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js index 989a61539..f666eda36 100644 --- a/js/CommonDialogs.js +++ b/js/CommonDialogs.js @@ -251,6 +251,27 @@ const CommonDialogs = { alert(__("No feeds selected.")); } }, + debugSelected: function() { + const sel_rows = this.getSelectedFeeds(); + + if (sel_rows.length > 0) { + if (confirm(__("Debug selected feeds?"))) { + Notify.progress("Opening debugger for selected feeds...", true); + + for (let i = 0; i < sel_rows.length; i++) { + /* global __csrf_token */ + App.postOpenWindow("backend.php", { + op: "Feeds", + method: "updatedebugger", + feed_id: sel_rows[i], + csrf_token: __csrf_token, + }); + } + } + } else { + alert(__("No feeds selected.")); + } + }, content: ` <div dojoType="fox.Toolbar"> <div dojoType="fox.form.DropDownButton"> @@ -290,6 +311,9 @@ const CommonDialogs = { <button style='float : left' class='alt-danger' dojoType='dijit.form.Button' onclick='App.dialogOf(this).removeSelected()'> ${__('Unsubscribe from selected feeds')} </button> + <button style='float : left' class='alt-info' dojoType='dijit.form.Button' onclick='App.dialogOf(this).debugSelected()'> + ${__('Debug selected feeds')} + </button> <button dojoType='dijit.form.Button' class='alt-primary' type='submit'> ${__('Close this window')} </button> |