consul/consul

View on GitHub
app/assets/javascripts/investment_report_alert.js

Summary

Maintainability
A
0 mins
Test Coverage
(function() {
  "use strict";
  App.InvestmentReportAlert = {
    initialize: function() {
      $("#js-investment-report-alert").on("click", function() {
        if (this.checked && $("#budget_investment_feasibility_unfeasible").is(":checked")) {
          return confirm(this.dataset.alert + "\n" + this.dataset.notFeasibleAlert);
        } else if (this.checked) {
          return confirm(this.dataset.alert);
        }
      });
    }
  };
}).call(this);