summaryrefslogtreecommitdiff
path: root/js/App.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-02 12:22:48 +0300
committerAndrew Dolgov <[email protected]>2021-03-02 12:22:48 +0300
commit30b94fb19467c023cf299a2c37f5063e85c4bb18 (patch)
tree9078e7c97f61ffb6ccd42833d2690da554a28cca /js/App.js
parent1a7f724bfa0594988b42c66741673de60112c786 (diff)
store widescreen mode setting in preferences instead of a cookie
Diffstat (limited to 'js/App.js')
-rw-r--r--js/App.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/App.js b/js/App.js
index 8eda5ac9d..f792cf2e1 100644
--- a/js/App.js
+++ b/js/App.js
@@ -779,7 +779,7 @@ const App = {
this.setLoadingProgress(50);
this._widescreen_mode = this.getInitParam("widescreen");
- this.switchPanelMode(this._widescreen_mode);
+ this.setWidescreen(this._widescreen_mode);
Headlines.initScrollHandler();
@@ -867,7 +867,7 @@ const App = {
}
}
},
- switchPanelMode: function(wide) {
+ setWidescreen: function(wide) {
const article_id = Article.getActive();
if (wide) {
@@ -908,7 +908,7 @@ const App = {
if (article_id) Article.view(article_id);
- xhr.post("backend.php", {op: "rpc", method: "setpanelmode", wide: wide ? 1 : 0});
+ xhr.post("backend.php", {op: "rpc", method: "setWidescreen", wide: wide ? 1 : 0});
},
initHotkeyActions: function() {
if (this.is_prefs) {
@@ -1168,7 +1168,7 @@ const App = {
Cookie.set("ttrss_ci_width", 0);
Cookie.set("ttrss_ci_height", 0);
- this.switchPanelMode(this._widescreen_mode);
+ this.setWidescreen(this._widescreen_mode);
} else {
alert(__("Widescreen is not available in combined mode."));
}
@@ -1258,7 +1258,7 @@ const App = {
Cookie.set("ttrss_ci_width", 0);
Cookie.set("ttrss_ci_height", 0);
- this.switchPanelMode(this._widescreen_mode);
+ this.setWidescreen(this._widescreen_mode);
} else {
alert(__("Widescreen is not available in combined mode."));
}