Marking a story as read when clicking on it in Feed view.

This commit is contained in:
Samuel Clay 2013-06-07 12:08:14 -04:00
parent 5405341c4a
commit fad0cbc6bb

View file

@ -9,6 +9,7 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
STORY_CONTENT_MAX_HEIGHT: 460, // ALSO CHANGE IN reader.css: .NB-story-content-wrapper-height-truncated
events: {
"click" : "mark_read",
"click .NB-feed-story-content a" : "click_link_in_story",
"click .NB-feed-story-share-container a": "click_link_in_story",
"click .NB-feed-story-comments a" : "click_link_in_story",
@ -450,6 +451,10 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
// = Actions =
// ===========
mark_read: function() {
this.model.mark_read();
},
preserve_classifier_color: function(classifier_type, value, score) {
var $tag;
this.$('.NB-feed-story-'+classifier_type).each(function() {