mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-05 16:49:45 +00:00
Fixing infinite loop when marking last unread feed as read.
This commit is contained in:
parent
18afd7abd6
commit
f390f1fb37
1 changed files with 7 additions and 1 deletions
|
@ -722,7 +722,10 @@
|
|||
include_selected: true,
|
||||
feed_id: this.active_feed
|
||||
});
|
||||
|
||||
|
||||
if (!$next_feed || $current_feed == $next_feed) return;
|
||||
if ($current_feed && $current_feed.data('id') == $next_feed.data('id')) return;
|
||||
|
||||
var next_feed_id = $next_feed.data('id');
|
||||
if (next_feed_id && next_feed_id == this.active_feed) {
|
||||
this.show_next_feed(direction, $next_feed);
|
||||
|
@ -736,6 +739,9 @@
|
|||
|
||||
show_next_folder: function(direction, $current_folder) {
|
||||
var $next_folder = this.get_next_folder(direction, $current_folder);
|
||||
|
||||
if (!$next_folder) return;
|
||||
|
||||
var folder = NEWSBLUR.assets.folders.get_view($next_folder);
|
||||
|
||||
this.open_river_stories($next_folder, folder && folder.model);
|
||||
|
|
Loading…
Add table
Reference in a new issue