summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-07-11 12:28:24 +0400
committerAndrew Dolgov <[email protected]>2013-07-11 12:28:24 +0400
commit7415fcf2129c4ac0cfd814b0beb917e2372447f1 (patch)
tree95aba7e904eecea1378ecd4d0d3be40019e05e23 /js
parentda0f023745730ef2330f458945629e5ceaea89a5 (diff)
enable floating title for expandable combined mode, minor expandable mode fixes
Diffstat (limited to 'js')
-rw-r--r--js/viewfeed.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index e23db86bd..1785fe3f5 100644
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -1315,7 +1315,7 @@ function headlines_scroll_handler(e) {
if (hsp) hsp.innerHTML = "";
}
- if (getInitParam("cdm_expanded") && isCdmMode()) {
+ if (isCdmMode()) {
updateFloatingTitle();
}
@@ -1489,6 +1489,12 @@ function cdmCollapseArticle(event, id, unmark) {
if (event) Event.stop(event);
PluginHost.run(PluginHost.HOOK_ARTICLE_COLLAPSED, id);
+
+ if (row.offsetTop < $("headlines-frame").scrollTop)
+ scrollToRowId(row.id);
+
+ Element.hide("floatingTitle");
+ $("floatingTitle").setAttribute("rowid", false);
}
} catch (e) {