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.
8 lines
322 B
CoffeeScript
8 lines
322 B
CoffeeScript
App.InvestmentReportAlert =
|
|
initialize: ->
|
|
$("#js-investment-report-alert").on "click", ->
|
|
if this.checked && $("#budget_investment_feasibility_unfeasible").is(":checked")
|
|
confirm("#{this.dataset.alert}\n#{this.dataset.notFeasibleAlert}")
|
|
else if this.checked
|
|
confirm(this.dataset.alert)
|