mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-07 06:37:44 +02:00
Add option to debug feeds in 'Feeds with update errors' dialog.
Also, prevent opening that dialog from modifying the URL.
This commit is contained in:
parent
e2e161dece
commit
5e7713a658
@ -453,7 +453,7 @@ class Feeds extends Handler_Protected {
|
|||||||
|
|
||||||
if ($num_errors > 0) {
|
if ($num_errors > 0) {
|
||||||
$reply['content'] .= "<br/>";
|
$reply['content'] .= "<br/>";
|
||||||
$reply['content'] .= "<a class=\"text-muted\" href=\"#\" onclick=\"CommonDialogs.showFeedsWithErrors()\">" .
|
$reply['content'] .= "<a class=\"text-muted\" href=\"#\" onclick=\"CommonDialogs.showFeedsWithErrors(); return false\">" .
|
||||||
__('Some feeds have update errors (click for details)') . "</a>";
|
__('Some feeds have update errors (click for details)') . "</a>";
|
||||||
}
|
}
|
||||||
$reply['content'] .= "</span></p></div>";
|
$reply['content'] .= "</span></p></div>";
|
||||||
@ -603,7 +603,7 @@ class Feeds extends Handler_Protected {
|
|||||||
|
|
||||||
if ($num_errors > 0) {
|
if ($num_errors > 0) {
|
||||||
$reply['headlines']['content'] .= "<br/>";
|
$reply['headlines']['content'] .= "<br/>";
|
||||||
$reply['headlines']['content'] .= "<a class=\"text-muted\" href=\"#\" onclick=\"CommonDialogs.showFeedsWithErrors()\">".
|
$reply['headlines']['content'] .= "<a class=\"text-muted\" href=\"#\" onclick=\"CommonDialogs.showFeedsWithErrors(); return false\">".
|
||||||
__('Some feeds have update errors (click for details)')."</a>";
|
__('Some feeds have update errors (click for details)')."</a>";
|
||||||
}
|
}
|
||||||
$reply['headlines']['content'] .= "</span></p>";
|
$reply['headlines']['content'] .= "</span></p>";
|
||||||
|
@ -251,6 +251,27 @@ const CommonDialogs = {
|
|||||||
alert(__("No feeds selected."));
|
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: `
|
content: `
|
||||||
<div dojoType="fox.Toolbar">
|
<div dojoType="fox.Toolbar">
|
||||||
<div dojoType="fox.form.DropDownButton">
|
<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()'>
|
<button style='float : left' class='alt-danger' dojoType='dijit.form.Button' onclick='App.dialogOf(this).removeSelected()'>
|
||||||
${__('Unsubscribe from selected feeds')}
|
${__('Unsubscribe from selected feeds')}
|
||||||
</button>
|
</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'>
|
<button dojoType='dijit.form.Button' class='alt-primary' type='submit'>
|
||||||
${__('Close this window')}
|
${__('Close this window')}
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user