diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2015-07-12 13:30:00 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2015-07-12 13:30:00 +0300 |
| commit | 15ae8cd0844b5beaee016ac769ec215adc0b4959 (patch) | |
| tree | 031ba7f4121b6e028057f28c2317fb09093f84c5 /js/feedlist.js | |
| parent | 96ac72bc12ab0f5a79c48b2542d4a20088d87f0a (diff) | |
js: remove current_top_id global
Diffstat (limited to 'js/feedlist.js')
| -rw-r--r-- | js/feedlist.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/js/feedlist.js b/js/feedlist.js index ffcecc7c4..54ad1cc50 100644 --- a/js/feedlist.js +++ b/js/feedlist.js @@ -99,8 +99,12 @@ function viewfeed(feed, method, is_cat, offset, background, infscroll_req, can_w query = query + "&m=" + param_escape(method); } - if (current_top_article_id && offset > 0) { - query = query + "&topid=" + param_escape(current_top_article_id); + if (offset > 0) { + var firstRow = $$('div[id*="RROW-"]').first(); + + if (firstRow) { + query = query + "&topid=" + param_escape(parseInt(firstRow.id.replace("RROW-", ""))); + } } if (!background) { |