summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/project.js.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/project.js.coffee')
-rw-r--r--app/assets/javascripts/project.js.coffee8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/project.js.coffee b/app/assets/javascripts/project.js.coffee
index 06d31965516..236f0899147 100644
--- a/app/assets/javascripts/project.js.coffee
+++ b/app/assets/javascripts/project.js.coffee
@@ -38,22 +38,22 @@ class @Project
.off 'click', '.update-notification'
.on 'click', '.update-notification', (e) ->
e.preventDefault()
- notification_level = $(@).data 'notification-level'
+ notificationLevel = $(@).data 'notification-level'
label = $(@).data 'notification-title'
$('.js-notification-loading').toggleClass 'fa-bell fa-spin fa-spinner'
- $('#notification_setting_level').val(notification_level)
+ $('#notification_setting_level').val(notificationLevel)
$('#notification-form').submit()
$(document)
.off 'ajax:success', '#notification-form'
.on 'ajax:success', '#notification-form', (e, data) ->
if data.saved
- new Flash("Notification settings saved", "notice")
+ new Flash('Notification settings saved', 'notice')
$('.js-notification-toggle-btns')
.closest('.notification-dropdown')
.replaceWith(data.html)
else
- new Flash("Failed to save new settings", "alert")
+ new Flash('Failed to save new settings', 'alert')
@projectSelectDropdown()