diff options
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"; |