Commit a3f0f2cc authored by Patricio Cano's avatar Patricio Cano

Move inline JS to admin.js.coffee specific file.

parent 79437672
......@@ -38,3 +38,15 @@ class @Admin
$('li.group_member').bind 'ajax:success', ->
Turbolinks.visit(location.href)
showBlacklistType = ->
if $('input[name=\'blacklist_type\']:checked').val() == 'file'
$('.blacklist-file').show()
$('.blacklist-raw').hide()
else
$('.blacklist-file').hide()
$('.blacklist-raw').show()
return
$('input[name=\'blacklist_type\']').click showBlacklistType
showBlacklistType()
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