]> git.wh0rd.org Git - tt-rss.git/commitdiff
tweak cdmExpandArticle behavior with scrolling (refs #604)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 21 Mar 2013 05:21:14 +0000 (09:21 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 21 Mar 2013 05:21:14 +0000 (09:21 +0400)
js/viewfeed.js

index 4c6d903660cc2279d5c01214b4b007b685baad76..a557b1b183a7c850e63bd5e72bc65746304b3010 100644 (file)
@@ -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);