Commit 3e5eb350 authored by Steffen van Bergerem's avatar Steffen van Bergerem Committed by Jonne Haß

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

parent 4b54e168
......@@ -41,7 +41,8 @@ app.views.Notifications = Backbone.View.extend({
this.updateView(data["guid"], type, data["unread"]);
},
markAllRead: function(){
markAllRead: function(evt){
if(evt) { evt.preventDefault(); }
var self = this;
this.getAllUnread().each(function(i, el){
self.setRead($(el).data("guid"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment