mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 14:45:56 +00:00
onViewModeChanged: set view mode value as a custom body attribute
This commit is contained in:
@@ -197,6 +197,10 @@ require(["dojo/_base/kernel",
|
|||||||
document.title = tmp;
|
document.title = tmp;
|
||||||
},
|
},
|
||||||
onViewModeChanged: function() {
|
onViewModeChanged: function() {
|
||||||
|
const view_mode = document.forms["toolbar-main"].view_mode.value;
|
||||||
|
|
||||||
|
$$("body")[0].setAttribute("view-mode", view_mode);
|
||||||
|
|
||||||
return Feeds.reloadCurrent('');
|
return Feeds.reloadCurrent('');
|
||||||
},
|
},
|
||||||
isCombinedMode: function() {
|
isCombinedMode: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user