Strict mode is supported by 98% of the browsers, including Internet Explorer 10, and it helps developers avoid common JavaScript pitfalls.
15 lines
418 B
CoffeeScript
15 lines
418 B
CoffeeScript
"use strict"
|
|
|
|
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()
|