summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-12 09:52:45 +0400
committerAndrew Dolgov <[email protected]>2013-03-12 09:52:45 +0400
commit4b27f0c06def91f5c962e765000809d55d25af32 (patch)
treefc2982d4a5cb2163c8811ff50669ecad6fcab9a9 /js
parent5f9d021336a5878f053faa31846b60b8cdcb6126 (diff)
add f C hotkey to toggle combined mode (closes #549)
Diffstat (limited to 'js')
-rw-r--r--js/tt-rss.js13
1 files changed, 13 insertions, 0 deletions
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
@@ -776,6 +776,19 @@ function hotkey_handler(e) {
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);
}