1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:05:56 +00:00

bring back (debloated) version of unexpanded combined mode

This commit is contained in:
Andrew Dolgov
2018-12-01 01:03:01 +03:00
parent 1702ecf7ea
commit 5aa9c60494
6 changed files with 134 additions and 14 deletions

View File

@@ -335,7 +335,11 @@ function init_hotkey_actions() {
scrollArticle(-40);
};
hotkey_actions["close_article"] = function() {
closeArticlePanel();
if (isCdmMode()) {
cdmCollapseActive();
} else {
closeArticlePanel();
}
};
hotkey_actions["email_article"] = function() {
if (typeof emailArticle != "undefined") {
@@ -501,6 +505,20 @@ function init_hotkey_actions() {
viewCurrentFeed();
})
};
hotkey_actions["toggle_cdm_expanded"] = function() {
notify_progress("Loading, please wait...");
const value = getInitParam("cdm_expanded") ? "false" : "true";
const 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();
} });
};
}
function init_second_stage() {