From 755072de9180880122b4629e49fa4d1fa4ca5e2a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 11 Mar 2021 14:32:15 +0300 Subject: css cleanup, combined mode, fonts --- js/Headlines.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'js') 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"; -- cgit v1.2.3-54-g00ecf