diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-25 22:45:58 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-25 22:45:58 -0700 |
commit | 3a11165648baaa5bfa474e335526747ddb6dde5e (patch) | |
tree | c5ab47350cb58397873b82ee6161124fb647ab84 /app | |
parent | 429a43ca6a6263cd3fad56059dbbd8abf9210aa5 (diff) | |
download | gitlab-ce-3a11165648baaa5bfa474e335526747ddb6dde5e.tar.gz |
Improve protected branches page UX
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/protected_branches.js.coffee | 6 |
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") |