mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Showing tags on load. Just need counts and tag feeds.
This commit is contained in:
parent
82f279ea0b
commit
e326c7df25
3 changed files with 8 additions and 1 deletions
|
@ -95,6 +95,12 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
|
|||
return this;
|
||||
},
|
||||
|
||||
render_starred_tags: function() {
|
||||
if (this.model.get('starred')) {
|
||||
this.save_view.toggle_feed_story_save_dialog();
|
||||
}
|
||||
},
|
||||
|
||||
render_header: function(model, value, options) {
|
||||
var params = this.get_render_params();
|
||||
this.$('.NB-feed-story-header').replaceWith($(this.story_header_template(params)));
|
||||
|
|
|
@ -65,6 +65,7 @@ NEWSBLUR.Views.StoryListView = Backbone.View.extend({
|
|||
this.$el.html(_.pluck(stories, 'el'));
|
||||
}
|
||||
_.invoke(stories, 'watch_images_for_story_height');
|
||||
_.invoke(stories, 'render_starred_tags');
|
||||
this.show_correct_feed_in_feed_title_floater();
|
||||
this.stories = stories;
|
||||
_.defer(this.check_feed_view_scrolled_to_bottom);
|
||||
|
@ -87,6 +88,7 @@ NEWSBLUR.Views.StoryListView = Backbone.View.extend({
|
|||
this.$el.append(_.pluck(stories, 'el'));
|
||||
}
|
||||
_.invoke(stories, 'watch_images_for_story_height');
|
||||
_.invoke(stories, 'render_starred_tags');
|
||||
|
||||
this.stories = this.stories.concat(stories);
|
||||
_.defer(this.check_feed_view_scrolled_to_bottom);
|
||||
|
|
|
@ -175,7 +175,6 @@ NEWSBLUR.Views.StorySaveView = Backbone.View.extend({
|
|||
var content_height = $story_content.height();
|
||||
var comments_height = $story_comments.height();
|
||||
var left_height = content_height + comments_height;
|
||||
var container_offset = $sideoption_container.position().top;
|
||||
var original_height = $story_content.data('original_height') || content_height;
|
||||
|
||||
if (!NEWSBLUR.reader.flags.narrow_content &&
|
||||
|
|
Loading…
Add table
Reference in a new issue