From 4300e3560e0231628fae53ddb87dbfa42eea2521 Mon Sep 17 00:00:00 2001 From: Michael Harrison Date: Wed, 24 Jun 2020 11:51:44 -0500 Subject: [PATCH] fix TOS button enable/disable --- app/assets/javascripts/newflow/newflow_ui.js.coffee | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/newflow/newflow_ui.js.coffee b/app/assets/javascripts/newflow/newflow_ui.js.coffee index 52b474812..47b47a95d 100644 --- a/app/assets/javascripts/newflow/newflow_ui.js.coffee +++ b/app/assets/javascripts/newflow/newflow_ui.js.coffee @@ -35,11 +35,8 @@ NewflowUi = do () -> enableOnChecked: (targetSelector, sourceSelector) -> $(document).ready => - enable_disable_continue = () -> - if $(sourceSelector).is(':checked') - @enableButton(targetSelector) - else - @disableButton(targetSelector) + enable_disable_continue = () => + this.checkCheckedButton(targetSelector, sourceSelector) setTimeout(enable_disable_continue, 500)