diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-25 22:32:08 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-25 22:32:08 -0700 |
commit | 429a43ca6a6263cd3fad56059dbbd8abf9210aa5 (patch) | |
tree | b9efbfcbbe23b0e89fcabbfde1928d731cc62641 | |
parent | 6fafe000f8a86daca762e4d17d9c116d29f84453 (diff) | |
download | gitlab-ce-429a43ca6a6263cd3fad56059dbbd8abf9210aa5.tar.gz |
Dont bind all checkboxes when you need only protected branches
-rw-r--r-- | app/assets/javascripts/protected_branches.js.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/protected_branches.js.coffee b/app/assets/javascripts/protected_branches.js.coffee index 691fd4f10d8..59cf4e8a752 100644 --- a/app/assets/javascripts/protected_branches.js.coffee +++ b/app/assets/javascripts/protected_branches.js.coffee @@ -1,5 +1,5 @@ $ -> - $(":checkbox").change -> + $(".protected-branches-list :checkbox").change -> name = $(this).attr("name") if name == "developers_can_push" id = $(this).val() |