diff --git a/app/assets/javascripts/app/controllers/widget/online_notification.coffee b/app/assets/javascripts/app/controllers/widget/online_notification.coffee index 386a13c45..147d13bf2 100644 --- a/app/assets/javascripts/app/controllers/widget/online_notification.coffee +++ b/app/assets/javascripts/app/controllers/widget/online_notification.coffee @@ -134,6 +134,7 @@ class App.OnlineNotificationWidget extends App.Controller @updateHeight() # mark all notifications as read + notificationsContainer = $('.js-notificationsContainer') notificationsContainer.find('.js-markAllAsRead').on('click', (e) => e.preventDefault() @markAllAsRead()