From 4b27f0c06def91f5c962e765000809d55d25af32 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 12 Mar 2013 09:52:45 +0400 Subject: add f C hotkey to toggle combined mode (closes #549) --- js/tt-rss.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'js/tt-rss.js') diff --git a/js/tt-rss.js b/js/tt-rss.js index 054ccf3df..badfe8707 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -775,6 +775,19 @@ function hotkey_handler(e) { return false; case "help_dialog": helpDialog("main"); + return false; + case "toggle_combined_mode": + notify_progress("Loading, please wait..."); + + var value = isCdmMode() ? "false" : "true"; + var query = "?op=rpc&method=setpref&key=COMBINED_DISPLAY_MODE&value=" + value; + + new Ajax.Request("backend.php", { + parameters: query, + onComplete: function(transport) { + window.location.reload(); + } }); + return false; default: console.log("unhandled action: " + hotkey_action + "; hotkey: " + hotkey); -- cgit v1.2.3