From 620a96750586b1a2092f998b6028ae846a0fc25a Mon Sep 17 00:00:00 2001 From: Anatoli Kalbasin <37359814+callbacksin@users.noreply.github.com> Date: Tue, 22 Oct 2024 18:49:05 +0300 Subject: [PATCH] disable checkRC if submit job is not sync (#88) Signed-off-by: Anatoli Kalbasin --- .../classic/steps/SubmitJobStep/config.jelly | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main/resources/org/zowe/zdevops/classic/steps/SubmitJobStep/config.jelly b/src/main/resources/org/zowe/zdevops/classic/steps/SubmitJobStep/config.jelly index 41b0e9c..e41f024 100644 --- a/src/main/resources/org/zowe/zdevops/classic/steps/SubmitJobStep/config.jelly +++ b/src/main/resources/org/zowe/zdevops/classic/steps/SubmitJobStep/config.jelly @@ -4,6 +4,13 @@ + + @@ -15,7 +22,7 @@ - + @@ -23,12 +30,13 @@ function checkSync${stepId}() { var sync = document.getElementById('${stepId}_sync'); var checkRC = document.getElementById('${stepId}_checkRC'); - checkRC.readonly = sync.checked; - console.log("it works"); + checkRC.removeAttribute('disabled'); + if (!sync.checked && checkRC.checked) { checkRC.checked = false; checkRC.readonly = true; + checkRC.disabled = "disabled"; } }