Notification dropdown: 'mark all as read' link scroll fix
This commit is contained in:
parent
4b54e1684f
commit
3e5eb350ae
1 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,8 @@ app.views.Notifications = Backbone.View.extend({
|
||||||
this.updateView(data["guid"], type, data["unread"]);
|
this.updateView(data["guid"], type, data["unread"]);
|
||||||
},
|
},
|
||||||
|
|
||||||
markAllRead: function(){
|
markAllRead: function(evt){
|
||||||
|
if(evt) { evt.preventDefault(); }
|
||||||
var self = this;
|
var self = this;
|
||||||
this.getAllUnread().each(function(i, el){
|
this.getAllUnread().each(function(i, el){
|
||||||
self.setRead($(el).data("guid"));
|
self.setRead($(el).data("guid"));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue