summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-25 22:45:58 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-25 22:45:58 -0700
commit3a11165648baaa5bfa474e335526747ddb6dde5e (patch)
treec5ab47350cb58397873b82ee6161124fb647ab84 /app
parent429a43ca6a6263cd3fad56059dbbd8abf9210aa5 (diff)
downloadgitlab-ce-3a11165648baaa5bfa474e335526747ddb6dde5e.tar.gz
Improve protected branches page UX
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/protected_branches.js.coffee6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/protected_branches.js.coffee b/app/assets/javascripts/protected_branches.js.coffee
index 59cf4e8a752..5753c9d4e72 100644
--- a/app/assets/javascripts/protected_branches.js.coffee
+++ b/app/assets/javascripts/protected_branches.js.coffee
@@ -1,5 +1,5 @@
$ ->
- $(".protected-branches-list :checkbox").change ->
+ $(".protected-branches-list :checkbox").change (e) ->
name = $(this).attr("name")
if name == "developers_can_push"
id = $(this).val()
@@ -14,8 +14,8 @@ $ ->
developers_can_push: checked
success: ->
- new Flash("Branch updated.", "notice")
- location.reload true
+ row = $(e.target)
+ row.closest('tr').effect('highlight')
error: ->
new Flash("Failed to update branch!", "alert")