Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2015-09-15 04:33:24 +0300
committerPatricio Cano <suprnova32@gmail.com>2015-09-15 04:33:24 +0300
commit01cc20378be1b77bd2a40a6af257e2cf116ce26a (patch)
tree043a3d8fc24f1cea2f530ffb1122e5ad00d12a96 /app/assets
parent8a6fb46dff970d599860b06a6c9105c503cbb89c (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.coffee4
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