From cc41a55ccef5a04d4bce44909cdc2352ebe4763d Mon Sep 17 00:00:00 2001 From: Andy Valencia Date: Fri, 10 Feb 2017 11:34:14 -0800 Subject: [PATCH] Have next/prev honor grouped display of articles under feeds. --- js/App.js | 45 +++++++++++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/js/App.js b/js/App.js index 10da474..6daa9eb 100644 --- a/js/App.js +++ b/js/App.js @@ -129,6 +129,7 @@ App.prototype.after_login = function(backend) { App.prototype.logout = function() { this.backend.logOut(); this.unread_articles = []; + this.next_articles = []; this.populateList(); this.login.log_out(); }; @@ -168,6 +169,7 @@ App.prototype.setColor = function(color) { App.prototype.reload = function() { this.unread_articles = []; + this.next_articles = []; $("#all-read").addClass('inactive'); var number=parseInt(localStorage.numArticles); this.backend.reload(this.gotUnreadFeeds.bind(this),number); @@ -262,6 +264,7 @@ App.prototype.populateList = function() { // Now build the article list; it's a