diff --git a/src/views/notifications.html b/src/views/notifications.html index 1c70c5b6c..7998b15cc 100644 --- a/src/views/notifications.html +++ b/src/views/notifications.html @@ -21,7 +21,7 @@
{{ notification.title }} {{ notification.creationTime | prettyDate }} - +

diff --git a/src/views/notifications.js b/src/views/notifications.js index f084391c2..23cab4b2b 100644 --- a/src/views/notifications.js +++ b/src/views/notifications.js @@ -44,9 +44,11 @@ angular.module('Application').controller('NotificationsController', ['$scope', ' $scope.notifications.activeNotification = notification; }, - ack: function (notification, callback) { + ack: function (notification, event, callback) { callback = callback || function (error) { if (error) console.error(error); }; + if (event) event.stopPropagation(); + Client.ackNotification(notification.id, function (error) { if (error) return callback(error); @@ -66,7 +68,7 @@ angular.module('Application').controller('NotificationsController', ['$scope', ' asyncForEach($scope.notifications.notifications, function (notification, callback) { if (notification.acknowledged) return callback(); - $scope.notifications.ack(notification, callback); + $scope.notifications.ack(notification, null /* no click event */, callback); }, function (error) { if (error) console.error(error);