1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 16:45:55 +00:00

add f C hotkey to toggle combined mode (closes #549)

This commit is contained in:
Andrew Dolgov
2013-03-12 09:52:45 +04:00
parent 5f9d021336
commit 4b27f0c06d
2 changed files with 16 additions and 1 deletions

View File

@@ -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);