Dont bind all checkboxes when you need only protected branches

This commit is contained in:
Dmitriy Zaporozhets 2015-03-25 22:32:08 -07:00
parent 6fafe000f8
commit 429a43ca6a

View file

@ -1,5 +1,5 @@
$ ->
$(":checkbox").change ->
$(".protected-branches-list :checkbox").change ->
name = $(this).attr("name")
if name == "developers_can_push"
id = $(this).val()