mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing mark as read for folders with oldest first.
This commit is contained in:
parent
fdc41314c6
commit
f42258b79d
2 changed files with 9 additions and 1 deletions
|
@ -118,6 +118,14 @@ NEWSBLUR.Models.FeedOrFolder = Backbone.Model.extend({
|
|||
}
|
||||
|
||||
return this.folders.has_unreads(options);
|
||||
},
|
||||
|
||||
view_setting: function(setting) {
|
||||
if (this.is_folder()) {
|
||||
return NEWSBLUR.assets.view_setting('river:' + this.get('folder_title'), setting);
|
||||
} else {
|
||||
return NEWSBLUR.assets.view_setting(this.id, setting);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -1982,7 +1982,7 @@
|
|||
var cutoff_timestamp = NEWSBLUR.utils.days_back_to_timestamp(days_back);
|
||||
if (!days_back && this.model.stories.length &&
|
||||
_.contains(feeds, this.model.stories.first().get('story_feed_id')) &&
|
||||
NEWSBLUR.assets.view_setting(folder.id, 'order') == 'newest') {
|
||||
folder.view_setting('order') == 'newest') {
|
||||
cutoff_timestamp = this.model.stories.first().get('story_timestamp');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue