diff options
author | Andrew Dolgov <[email protected]> | 2018-12-02 08:32:13 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-02 08:32:13 +0300 |
commit | 3678315bead3f7264dc2aa9c7feb6e0a0f20ea63 (patch) | |
tree | b0c787b4d7104ad6a0f759e9a4d0f3160e6946c4 /js/feedlist.js | |
parent | d8ac5474ec8bb32a4085ed78f3c782c8baab2f7c (diff) |
Article, Headlines: shorten several method names
Diffstat (limited to 'js/feedlist.js')
-rw-r--r-- | js/feedlist.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/feedlist.js b/js/feedlist.js index 53274b8ba..400328317 100644 --- a/js/feedlist.js +++ b/js/feedlist.js @@ -212,7 +212,7 @@ const Feeds = { Utils.setLoadingProgress(50); document.onkeydown = () => { App.hotkeyHandler(event) }; - window.setInterval(() => { Headlines.catchupBatchedArticles() }, 10 * 1000); + window.setInterval(() => { Headlines.catchupBatched() }, 10 * 1000); if (!this.getActiveFeedId()) { this.viewfeed({feed: -3}); @@ -304,7 +304,7 @@ const Feeds = { if (feed != this.getActiveFeedId() || this.activeFeedIsCat() != is_cat) { this._search_query = false; - Article.setActiveArticleId(0); + Article.setActive(0); } if (offset != 0) { @@ -371,7 +371,7 @@ const Feeds = { window.clearTimeout(this._viewfeed_wait_timeout); this._viewfeed_wait_timeout = window.setTimeout(() => { - Headlines.catchupBatchedArticles(() => { + Headlines.catchupBatched(() => { xhrPost("backend.php", query, (transport) => { try { window.clearTimeout(this._infscroll_timeout); @@ -494,7 +494,7 @@ const Feeds = { rows.each(function (row) { row.removeClassName("Unread"); - if (row.getAttribute("data-article-id") != Article.getActiveArticleId()) { + if (row.getAttribute("data-article-id") != Article.getActive()) { new Effect.Fade(row, {duration: 0.5}); } |