agenda-libre-ruby/app/assets/javascripts/moderations.js.coffee

6 lines
269 B
CoffeeScript

$(document).ready ->
$('body.moderations .field.closer input[type=radio]').click ->
$('body.moderations #reason_text').parent().slideUp()
$('body.moderations .field.opener input[type=radio]').click ->
$('body.moderations #reason_text').parent().slideDown()