App.Legislation =

  initialize: ->
    $('#js-toggle-small-debate').on
      click: ->
        $(this).find($('span')).toggleClass('icon-angle-up')

    $('form#new_legislation_answer input.button').hide()
    $('form#new_legislation_answer input[type=radio]').on
      click: ->
        $('form#new_legislation_answer').submit()

    $('form#draft_version_go_to_version input.button').hide()
    $('form#draft_version_go_to_version select').on
      change: ->
        $('form#draft_version_go_to_version').submit()
