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
479 B
CoffeeScript
13 lines
479 B
CoffeeScript
App.PollsAdmin =
|
|
|
|
initialize: ->
|
|
$("select[class='js-poll-shifts']").on
|
|
change: ->
|
|
switch ($(this).val())
|
|
when "vote_collection"
|
|
$("select[class='js-shift-vote-collection-dates']").show()
|
|
$("select[class='js-shift-recount-scrutiny-dates']").hide()
|
|
when "recount_scrutiny"
|
|
$("select[class='js-shift-recount-scrutiny-dates']").show()
|
|
$("select[class='js-shift-vote-collection-dates']").hide()
|