diff options
author | Patricio Cano <suprnova32@gmail.com> | 2015-09-15 04:33:24 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2015-09-15 04:33:24 +0300 |
commit | 01cc20378be1b77bd2a40a6af257e2cf116ce26a (patch) | |
tree | 043a3d8fc24f1cea2f530ffb1122e5ad00d12a96 /app/assets | |
parent | 8a6fb46dff970d599860b06a6c9105c503cbb89c (diff) |
Notification dropdown now shows currently active level, and also shows what the actual value of `global` is, if the project has the notification level set to global.
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/project.js.coffee | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/project.js.coffee b/app/assets/javascripts/project.js.coffee index 94380ccac7b..f524627e0be 100644 --- a/app/assets/javascripts/project.js.coffee +++ b/app/assets/javascripts/project.js.coffee @@ -29,4 +29,6 @@ class @Project e.preventDefault() level = $(this).data('notification-level') $('#notification_level').val(level) - $('#notification-form').submit()
\ No newline at end of file + $('#notification-form').submit() + $(this).parents('ul').find('li.active').removeClass('active') + $(this).parent().addClass('active')
\ No newline at end of file |