onViewModeChanged: set view mode value as a custom body attribute

This commit is contained in:
Andrew Dolgov 2020-01-24 16:04:12 +03:00
parent a64b8a7fdb
commit 4a4d7a44fa
1 changed files with 4 additions and 0 deletions

View File

@ -197,6 +197,10 @@ require(["dojo/_base/kernel",
document.title = tmp;
},
onViewModeChanged: function() {
const view_mode = document.forms["toolbar-main"].view_mode.value;
$$("body")[0].setAttribute("view-mode", view_mode);
return Feeds.reloadCurrent('');
},
isCombinedMode: function() {