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

persist widescreen mode in session

This commit is contained in:
Andrew Dolgov
2013-01-19 10:55:51 +04:00
parent ec6e51556d
commit 7d8f56571b
3 changed files with 22 additions and 0 deletions

View File

@@ -336,6 +336,12 @@ function init_second_stage() {
updateFeedList();
closeArticlePanel();
_widescreen_mode = getInitParam("widescreen");
if (_widescreen_mode) {
switchPanelMode(_widescreen_mode);
}
if (typeof themeAfterLayout == 'function') {
themeAfterLayout();
}
@@ -1007,6 +1013,13 @@ function switchPanelMode(wide) {
if (article_id) view(article_id);
new Ajax.Request("backend.php", {
parameters: "op=rpc&method=setpanelmode&wide=" + (wide ? 1 : 0),
onComplete: function(transport) {
console.log(transport.responseText);
} });
} catch (e) {
exception_error("switchPanelMode", e);
}