diff options
author | Andrew Dolgov <[email protected]> | 2019-02-14 16:20:10 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-02-14 16:20:10 +0300 |
commit | 848bb6579c35a1f6b7cee7409913fcba665f5f7a (patch) | |
tree | 85215dac86c0eb5e8cae5669fe56e94f75b32540 /js | |
parent | 510f99fa254881e5b14331436bbcc14121e8bce4 (diff) |
floatingTitle: show collapse button if in expandable mode
Diffstat (limited to 'js')
-rwxr-xr-x | js/Headlines.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/Headlines.js b/js/Headlines.js index e83a5fac7..b0ac7debe 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -556,6 +556,9 @@ define(["dojo/_base/declare"], function (declare) { if (!append) { + // TODO: the below needs to be applied again when switching expanded/expandable on the fly + // via hotkeys, not just on feed load + $("headlines-frame").removeClassName("cdm"); $("headlines-frame").removeClassName("normal"); @@ -564,6 +567,13 @@ define(["dojo/_base/declare"], function (declare) { $("headlines-frame").setAttribute("is-vfeed", reply['headlines']['is_vfeed'] ? 1 : 0); + // for floating title because it's placed outside of headlines-frame + $("main").removeClassName("expandable"); + $("main").removeClassName("expanded"); + + if (App.isCombinedMode()) + $("main").addClassName(App.getInitParam("cdm_expanded") ? " expanded" : " expandable"); + Article.setActive(0); try { |