mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Marking a story as read when clicking on it in Feed view.
This commit is contained in:
parent
5405341c4a
commit
fad0cbc6bb
1 changed files with 5 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue