Select story in feed

This commit is contained in:
Samuel Clay 2016-11-30 19:27:11 -08:00
parent 52db1011a9
commit 933e395468
2 changed files with 6 additions and 0 deletions

View file

@ -1869,6 +1869,11 @@
var folder_title = folder && folder.get('folder_title') || "Everything";
this.reset_feed(options);
if (options.story_id) {
this.flags['select_story_in_feed'] = options.story_id;
}
this.hide_splash_page();
if (!folder || folder.get('fake') || !folder.get('folder_title')) {
this.active_feed = 'river:';

View file

@ -463,6 +463,7 @@ NEWSBLUR.Views.StoryTitleView = Backbone.View.extend({
if (this.options.on_dashboard) {
console.log(['clicked story', this.model]);
NEWSBLUR.reader.open_river_stories(null, null, {story_id: this.model.id});
return;
}