Read about our upcoming Code of Conduct on this issue

Commit 3a111656 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Improve protected branches page UX

parent 2f7068662a94
$ ->
$(".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")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment