mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 06:35:55 +00:00
add Headlines.renderAgain() to switch between combined/expanded modes faster
This commit is contained in:
@@ -444,8 +444,6 @@ require(["dojo/_base/kernel",
|
||||
App.helpDialog("main");
|
||||
};
|
||||
this.hotkey_actions["toggle_combined_mode"] = function () {
|
||||
Notify.progress("Loading, please wait...");
|
||||
|
||||
const value = App.isCombinedMode() ? "false" : "true";
|
||||
|
||||
xhrPost("backend.php", {op: "rpc", method: "setpref", key: "COMBINED_DISPLAY_MODE", value: value}, () => {
|
||||
@@ -453,17 +451,15 @@ require(["dojo/_base/kernel",
|
||||
!App.getInitParam("combined_display_mode"));
|
||||
|
||||
Article.close();
|
||||
Feeds.reloadCurrent();
|
||||
Headlines.renderAgain();
|
||||
})
|
||||
};
|
||||
this.hotkey_actions["toggle_cdm_expanded"] = function () {
|
||||
Notify.progress("Loading, please wait...");
|
||||
|
||||
const value = App.getInitParam("cdm_expanded") ? "false" : "true";
|
||||
|
||||
xhrPost("backend.php", {op: "rpc", method: "setpref", key: "CDM_EXPANDED", value: value}, () => {
|
||||
App.setInitParam("cdm_expanded", !App.getInitParam("cdm_expanded"));
|
||||
Feeds.reloadCurrent();
|
||||
Headlines.renderAgain();
|
||||
});
|
||||
};
|
||||
this.hotkey_actions["toggle_night_mode"] = function () {
|
||||
|
||||
Reference in New Issue
Block a user