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 03:27:54 +0300
committerPatricio Cano <suprnova32@gmail.com>2015-09-15 03:27:54 +0300
commitadcae6ebd597c731b22a748b882b668e6301763f (patch)
tree59043f6fb2146dbb5a445b10f54c6016f5544697 /app/assets
parentab56718feb0e155ae889afe900a009594f8acfa1 (diff)
Notification level can now be saved from within the project view.
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/project.js.coffee6
-rw-r--r--app/assets/stylesheets/pages/projects.scss4
2 files changed, 10 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
diff --git a/app/assets/stylesheets/pages/projects.scss b/app/assets/stylesheets/pages/projects.scss
index 361fd63bc79..8021b3bbffa 100644
--- a/app/assets/stylesheets/pages/projects.scss
+++ b/app/assets/stylesheets/pages/projects.scss
@@ -338,3 +338,7 @@ pre.light-well {
margin-top: -1px;
}
}
+
+.inline-form {
+ display: inline-block;
+}