summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-21 09:21:14 +0400
committerAndrew Dolgov <[email protected]>2013-03-21 09:21:14 +0400
commitf06f201f1ec4fb749c4ae4500f97517ca9883945 (patch)
treea49c1b3dc7e94d8696e5d8ec796b350838c8b986 /js
parent5b0aec17e9359818e6a9d3161d8539d6ed7a4f70 (diff)
tweak cdmExpandArticle behavior with scrolling (refs #604)
Diffstat (limited to 'js')
-rw-r--r--js/viewfeed.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index 4c6d90366..a557b1b18 100644
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -1348,7 +1348,6 @@ function cdmCollapseArticle(event, id) {
function cdmExpandArticle(id) {
try {
-
console.log("cdmExpandArticle " + id);
hideAuxDlg();
@@ -1373,10 +1372,6 @@ function cdmExpandArticle(id) {
setActiveArticleId(id);
- if (!getInitParam("cdm_expanded")) {
- cdmScrollToArticleId(id, true);
- }
-
elem = $("CICD-" + id);
var collapse = $$("div#RROW-" + id +
@@ -1395,12 +1390,12 @@ function cdmExpandArticle(id) {
Element.show(collapse);
}
- /* var new_offset = $("RROW-" + id).offsetTop;
+ var new_offset = $("RROW-" + id).offsetTop;
$("headlines-frame").scrollTop += (new_offset-old_offset);
- if ($("RROW-" + id).offsetTop != old_offset)
- $("headlines-frame").scrollTop = new_offset; */
+// if ($("RROW-" + id).offsetTop != old_offset)
+// $("headlines-frame").scrollTop = new_offset;
toggleUnread(id, 0, true);
toggleSelected(id);