Notification dropdown: 'mark all as read' link scroll fix

This commit is contained in:
Steffen van Bergerem 2015-04-02 20:58:17 +02:00 committed by Jonne Haß
parent 4b54e1684f
commit 3e5eb350ae

View file

@ -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"));