Only moving to next feed when marking as read without a direction (older/newer).

This commit is contained in:
Samuel Clay 2014-09-09 15:02:33 -07:00
parent 8db52c89c1
commit 18afd7abd6

View file

@ -2117,7 +2117,7 @@
this.model.mark_feed_as_read([feed_id], cutoff_timestamp, direction,
feed_id == this.active_feed, _.bind(function() {
if (NEWSBLUR.assets.preference('markread_nextfeed') == 'nextfeed') {
if (!direction && NEWSBLUR.assets.preference('markread_nextfeed') == 'nextfeed') {
this.show_next_feed(1);
}
this.feeds_unread_count(feed_id);
@ -2139,7 +2139,7 @@
if (!this.socket || !this.socket.socket || !this.socket.socket.connected) {
this.force_feeds_refresh(null, false, feeds);
}
if (NEWSBLUR.assets.preference('markread_nextfeed') == 'nextfeed') {
if (!direction && NEWSBLUR.assets.preference('markread_nextfeed') == 'nextfeed') {
this.show_next_feed(1);
}
}, this));