Selecting first story in text view in folders. Showing unread count floater even in text view.

This commit is contained in:
Samuel Clay 2013-01-09 10:58:43 -08:00
parent bb716839b6
commit 81220cd2b8
2 changed files with 15 additions and 3 deletions

View file

@ -755,6 +755,11 @@
top: dir+'='+scroll_height,
left:'+=0'
}, 230, {queue: false});
} else if (this.story_view == 'text') {
this.$s.$text_view.scrollTo({
top: dir+'='+scroll_height,
left:'+=0'
}, 230, {queue: false});
}
this.show_mouse_indicator();
@ -1421,14 +1426,18 @@
} else if (this.counts['select_story_in_feed'] || this.flags['select_story_in_feed']) {
this.select_story_in_feed();
}
if (first_load) {
this.find_story_with_action_preference_on_open_feed();
}
this.hide_stories_progress_bar();
if (NEWSBLUR.Globals.is_anonymous) {
this.show_tryout_signup_button();
} else if (first_load) {
this.make_story_titles_pane_counter();
this.find_story_with_action_preference_on_open_feed();
if (_.contains(['story', 'text'], this.story_view) &&
!this.active_story &&
!this.counts['find_next_unread_on_page_of_feed_stories_load']) {
this.show_next_story(1);
}
}
}
},

View file

@ -14,6 +14,8 @@ NEWSBLUR.Views.TextTabView = Backbone.View.extend({
if (!story) story = NEWSBLUR.reader.active_story;
if (!story) return;
if (this.story == story) return;
this.story = story;
this.$story.html(new NEWSBLUR.Views.StoryDetailView({
model: this.story,
@ -45,6 +47,7 @@ NEWSBLUR.Views.TextTabView = Backbone.View.extend({
this.error();
} else {
$content.html(original_text);
NEWSBLUR.reader.make_story_titles_pane_counter();
}
$content.css('opacity', 0);
$content.show();