diff options
author | Phil Hughes <me@iamphill.com> | 2016-06-17 17:17:23 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-17 17:17:23 +0300 |
commit | 83446ce7becf3f8af49694529a44e85ada0131c9 (patch) | |
tree | 960a33796e881c37e0cec60768b988cac8ae5b38 /app/assets/javascripts | |
parent | fd15e814446987c46d7b94f2a85e457d34941643 (diff) |
Fixed bug with clicking custom again not opening modal
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/notifications_dropdown.js.coffee | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/notifications_dropdown.js.coffee b/app/assets/javascripts/notifications_dropdown.js.coffee index 15daf027c0a..c13010f56ec 100644 --- a/app/assets/javascripts/notifications_dropdown.js.coffee +++ b/app/assets/javascripts/notifications_dropdown.js.coffee @@ -4,6 +4,9 @@ class @NotificationsDropdown .off 'click', '.update-notification' .on 'click', '.update-notification', (e) -> e.preventDefault() + + return if $(this).is('.is-active') and $(this).data('notification-level') is 'custom' + notificationLevel = $(@).data 'notification-level' label = $(@).data 'notification-title' form = $(this).parents('form:first') |