From 64c24ecb5973adad700612b0ec913b190e8b1e58 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 26 Jul 2016 15:55:00 +0300 Subject: add hotkey for toggling VFEED_GROUP_BY_FEED preference --- js/tt-rss.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'js/tt-rss.js') diff --git a/js/tt-rss.js b/js/tt-rss.js index 2f738810b..108b65a7f 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -441,6 +441,16 @@ function init() { hotkey_actions["feed_reverse"] = function() { reverseHeadlineOrder(); }; + hotkey_actions["feed_toggle_vgroup"] = function() { + var query_str = "?op=rpc&method=togglepref&key=VFEED_GROUP_BY_FEED"; + + new Ajax.Request("backend.php", { + parameters: query_str, + onComplete: function(transport) { + viewCurrentFeed(); + } }); + + }; hotkey_actions["catchup_all"] = function() { catchupAllFeeds(); }; -- cgit v1.2.3-54-g00ecf