summaryrefslogtreecommitdiff
path: root/js/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-06-12 13:06:36 +0300
committerAndrew Dolgov <[email protected]>2015-06-12 13:06:36 +0300
commit86b05f8661274e4bcf4a30caed2f8a105a392352 (patch)
tree0a85f6b35005ec3647338141d558899cfa40d4a2 /js/tt-rss.js
parent7624aa6e4042a66a60ca2ffb0035efcc3d8d51c5 (diff)
better feed debugger ui for f D
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r--js/tt-rss.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js
index 08602c8e5..602c953b1 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -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())