Skip to content
Snippets Groups Projects
Commit a3f0f2cc authored by Patricio Cano's avatar Patricio Cano
Browse files

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

parent 79437672
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment