From 86b05f8661274e4bcf4a30caed2f8a105a392352 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Jun 2015 13:06:36 +0300 Subject: better feed debugger ui for f D --- js/tt-rss.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'js') 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()) -- cgit v1.2.3-54-g00ecf