]> git.wh0rd.org Git - tt-rss.git/commitdiff
previous patch, remove active_found
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 16 May 2013 05:54:12 +0000 (09:54 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 16 May 2013 05:54:12 +0000 (09:54 +0400)
js/viewfeed.js

index 3981fd964723e7ce0a6359bb55620966cbefc992..2142f2e96bc00a830c68df1953c685b8c8efd2cf 100644 (file)
@@ -1240,8 +1240,6 @@ function headlines_scroll_handler(e) {
 
                unpackVisibleHeadlines();
 
-               var active_found = false;
-
                // set topmost child in the buffer as active
                if (getInitParam("cdm_auto_catchup") == 1) {
                        var rows = $$("#headlines-frame > div[id*=RROW]");
@@ -1250,8 +1248,6 @@ function headlines_scroll_handler(e) {
                                var child = rows[i];
 
                                if (!active_found && $("headlines-frame").scrollTop < child.offsetTop) {
-                                       active_found = true;
-
                                        if (_active_article_id) {
                                                var row = $("RROW-" + _active_article_id);
                                                if (row) row.removeClassName("active");