diff options
author | Patricio Cano <suprnova32@gmail.com> | 2015-09-14 19:27:54 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2015-09-14 19:27:54 -0500 |
commit | adcae6ebd597c731b22a748b882b668e6301763f (patch) | |
tree | 59043f6fb2146dbb5a445b10f54c6016f5544697 /app/assets/javascripts/project.js.coffee | |
parent | ab56718feb0e155ae889afe900a009594f8acfa1 (diff) | |
download | gitlab-ce-adcae6ebd597c731b22a748b882b668e6301763f.tar.gz |
Notification level can now be saved from within the project view.
Diffstat (limited to 'app/assets/javascripts/project.js.coffee')
-rw-r--r-- | app/assets/javascripts/project.js.coffee | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/project.js.coffee b/app/assets/javascripts/project.js.coffee index 39a433dfc91..94380ccac7b 100644 --- a/app/assets/javascripts/project.js.coffee +++ b/app/assets/javascripts/project.js.coffee @@ -24,3 +24,9 @@ class @Project $.cookie('hide_no_password_message', 'false', { path: path }) $(@).parents('.no-password-message').remove() e.preventDefault() + + $('.update-notification').on 'click', (e) -> + e.preventDefault() + level = $(this).data('notification-level') + $('#notification_level').val(level) + $('#notification-form').submit()
\ No newline at end of file |