From 3e5eb350ae41efd64acbb43423ad34cd9d3f66b7 Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Thu, 2 Apr 2015 20:58:17 +0200 Subject: [PATCH] Notification dropdown: 'mark all as read' link scroll fix --- app/assets/javascripts/app/views/notifications_view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/views/notifications_view.js b/app/assets/javascripts/app/views/notifications_view.js index a6be69efe..808ce6749 100644 --- a/app/assets/javascripts/app/views/notifications_view.js +++ b/app/assets/javascripts/app/views/notifications_view.js @@ -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"));