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

6 lines
287 B
CoffeeScript

$(document).on 'turbolinks:load', ->
$('body.moderations .field.closer input[type=radio]').click ->
$('body.moderations #event_reason').parent().slideUp()
$('body.moderations .field.opener input[type=radio]').click ->
$('body.moderations #event_reason').parent().slideDown()