scenario-show-page.js 652 B

123456789101112131415161718192021222324
  1. this.ScenarioShowPage = class ScenarioShowPage {
  2. constructor() {
  3. this.changeModalText();
  4. }
  5. changeModalText() {
  6. $("#disable-all").click(function () {
  7. $("#enable-disable-agents .modal-body").text(
  8. "Would you like to disable all agents?"
  9. );
  10. return $("#scenario-disabled-value").val("true");
  11. });
  12. return $("#enable-all").click(function () {
  13. $("#enable-disable-agents .modal-body").text(
  14. "Would you like to enable all agents?"
  15. );
  16. return $("#scenario-disabled-value").val("false");
  17. });
  18. }
  19. };
  20. $(() =>
  21. Utils.registerPage(ScenarioShowPage, { forPathsMatching: /^scenarios/ })
  22. );