Files
nairobi/app/assets/javascripts/legislation.js.coffee
Javi Martín b27855c1cf Use double quotes in CoffeeScript files
As we do in the rest of the application.

Note we cannot add a rule enforcing double quotes because CoffeeScript
Lint does not have such rule.
2019-03-06 11:41:21 +01:00

13 lines
404 B
CoffeeScript

App.Legislation =
initialize: ->
$("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()