1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:25:54 +00:00

better feed debugger ui for f D

This commit is contained in:
Andrew Dolgov
2015-06-12 13:06:36 +03:00
parent 7624aa6e40
commit 86b05f8661
3 changed files with 58 additions and 8 deletions

View File

@@ -422,10 +422,12 @@ function init() {
quickAddFeed();
};
hotkey_actions["feed_debug_update"] = function() {
window.open("backend.php?op=feeds&method=view&feed=" + getActiveFeedId() +
"&view_mode=adaptive&order_by=default&update=&m=ForceUpdate&cat=" +
activeFeedIsCat() + "&DevForceUpdate=1&debug=1&xdebug=1&csrf_token=" +
getInitParam("csrf_token"));
if (!activeFeedIsCat() && parseInt(getActiveFeedId()) > 0) {
window.open("backend.php?op=feeds&method=update_debugger&feed_id=" + getActiveFeedId() +
"&csrf_token=" + getInitParam("csrf_token"));
} else {
alert("You can't debug this kind of feed.");
}
};
hotkey_actions["feed_edit"] = function() {
if (activeFeedIsCat())