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:
13
js/tt-rss.js
13
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);
|
||||
|
||||
Reference in New Issue
Block a user