summaryrefslogtreecommitdiff
path: root/js/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-11-30 13:51:54 +0300
committerAndrew Dolgov <[email protected]>2018-11-30 13:51:54 +0300
commit9563e3bcd662b87ea6779714b51afb61571dd32d (patch)
tree2e492c27f08380f1e58458f8546f8aea212e64c9 /js/tt-rss.js
parentc8c9a26f3071edc2f0307336b6dd6062e4351773 (diff)
remove expandable CDM headlines
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r--js/tt-rss.js44
1 files changed, 1 insertions, 43 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js
index 5d316c856..1270f6e33 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -299,32 +299,6 @@ function init_hotkey_actions() {
hotkey_actions["prev_article_noexpand"] = function() {
moveToPost('prev', true, true);
};
- hotkey_actions["collapse_article"] = function() {
- const id = getActiveArticleId();
- const elem = $("CICD-"+id);
-
- if (elem) {
- if (elem.visible()) {
- cdmCollapseArticle(null, id);
- }
- else {
- cdmExpandArticle(id);
- }
- }
- };
- hotkey_actions["toggle_expand"] = function() {
- const id = getActiveArticleId();
- const elem = $("CICD-"+id);
-
- if (elem) {
- if (elem.visible()) {
- cdmCollapseArticle(null, id, false);
- }
- else {
- cdmExpandArticle(id);
- }
- }
- };
hotkey_actions["search_dialog"] = function() {
search();
};
@@ -361,13 +335,7 @@ function init_hotkey_actions() {
scrollArticle(-40);
};
hotkey_actions["close_article"] = function() {
- if (isCdmMode()) {
- if (!getInitParam("cdm_expanded")) {
- cdmCollapseArticle(false, getActiveArticleId());
- }
- } else {
- closeArticlePanel();
- }
+ closeArticlePanel();
};
hotkey_actions["email_article"] = function() {
if (typeof emailArticle != "undefined") {
@@ -531,16 +499,6 @@ function init_hotkey_actions() {
viewCurrentFeed();
})
};
- hotkey_actions["toggle_cdm_expanded"] = function() {
- notify_progress("Loading, please wait...");
-
- const value = getInitParam("cdm_expanded") ? "false" : "true";
-
- xhrPost("backend.php", {op: "rpc", method: "setpref", key: "CDM_EXPANDED", value: value}, () => {
- setInitParam("cdm_expanded", !getInitParam("cdm_expanded"));
- viewCurrentFeed();
- });
- };
}
function init_second_stage() {