mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:25:55 +00:00
add hotkey toggle_cdm_expanded (f c)
This commit is contained in:
13
js/tt-rss.js
13
js/tt-rss.js
@@ -483,6 +483,19 @@ function init() {
|
||||
window.location.reload();
|
||||
} });
|
||||
};
|
||||
hotkey_actions["toggle_cdm_expanded"] = function() {
|
||||
notify_progress("Loading, please wait...");
|
||||
|
||||
var value = getInitParam("cdm_expanded") ? "false" : "true";
|
||||
var query = "?op=rpc&method=setpref&key=CDM_EXPANDED&value=" + value;
|
||||
|
||||
new Ajax.Request("backend.php", {
|
||||
parameters: query,
|
||||
onComplete: function(transport) {
|
||||
setInitParam("cdm_expanded", !getInitParam("cdm_expanded"));
|
||||
viewCurrentFeed();
|
||||
} });
|
||||
};
|
||||
|
||||
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user