diff options
author | Andrew Dolgov <[email protected]> | 2021-03-11 14:32:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-11 14:32:15 +0300 |
commit | 755072de9180880122b4629e49fa4d1fa4ca5e2a (patch) | |
tree | d3da8ff0f6d1c4ef9e36b89d7c46bcfed044ce67 /js/Headlines.js | |
parent | de47082ca6a9b03929f946745de1434b1a8da8b7 (diff) |
css cleanup, combined mode, fonts
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-x | js/Headlines.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/js/Headlines.js b/js/Headlines.js index 65cd2480c..403f3f52c 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -388,6 +388,8 @@ const Headlines = { container.addClassName(App.isCombinedMode() ? "cdm" : "normal"); container.setAttribute("data-enable-grid", App.getInitParam("cdm_enable_grid") ? "true" : "false"); container.setAttribute("data-headlines-count", parseInt(headlines_count)); + container.setAttribute("data-is-cdm", App.isCombinedMode() ? "true" : "false"); + container.setAttribute("data-is-cdm-expanded", App.getInitParam("cdm_expanded")); // for floating title because it's placed outside of headlines-frame App.byId("main").removeClassName("expandable"); @@ -462,11 +464,6 @@ const Headlines = { this.vgroup_last_feed = hl.feed_id; } - const container = App.byId("headlines-frame"); - - container.setAttribute("data-is-cdm", App.isCombinedMode() ? "true" : "false"); - container.setAttribute("data-is-cdm-expanded", App.getInitParam("cdm_expanded")); - if (App.isCombinedMode()) { row_class += App.getInitParam("cdm_expanded") ? " expanded" : " expandable"; |