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