Merge branch 'release/0.5.0.0-RC' into develop

This commit is contained in:
Jonne Haß 2015-04-03 02:21:59 +02:00
commit bec2508545

View file

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