Skip to content

Commit

Permalink
mark as read once prev/next buttons rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
mboinet committed May 25, 2013
1 parent 823b824 commit 5d1e87b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/scripts/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -890,11 +890,6 @@ define(['jquery', 'models', 'templates','conf','utils'],

$contentDiv.trigger('create');

// mark as read and save it to the backend
if (this.model.get("unread")){
this.model.save({ unread: false});
}

} else {
$contentDiv.html("Content loading...");
}
Expand Down Expand Up @@ -1015,6 +1010,11 @@ define(['jquery', 'models', 'templates','conf','utils'],
}
}

// mark as read and save it to the backend
if (this.model.get("unread")){
this.model.save({unread: false});
}

},

initialize: function(){
Expand Down

0 comments on commit 5d1e87b

Please sign in to comment.