Files
grecia/app/assets/javascripts/investment_report_alert.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

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)