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"; } }