From b5a263ab905e5efec08db494f86dbd4d16e3c2fc Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 14 Mar 2016 21:53:50 +0100 Subject: [PATCH] Fixed undefined variable syntax error. --- .../app/controllers/widget/online_notification.coffee | 1 + 1 file changed, 1 insertion(+) 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()