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.
13 lines
404 B
CoffeeScript
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()
|