From 6106e5ee0c202073add3e2d9cd51f04fd2f3f529 Mon Sep 17 00:00:00 2001 From: Mridul97 Date: Fri, 31 Aug 2018 00:34:09 +0530 Subject: [PATCH] Disable-save-button (#322) --- examples/lib/defaultHtmlStepUi.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/examples/lib/defaultHtmlStepUi.js b/examples/lib/defaultHtmlStepUi.js index efc11921..8433a2c1 100644 --- a/examples/lib/defaultHtmlStepUi.js +++ b/examples/lib/defaultHtmlStepUi.js @@ -60,14 +60,14 @@ function DefaultHtmlStepUi(_sequencer, options) { if (!isInput) { html += ''; } else if (inputDesc.type.toLowerCase() == "select") { - html += ''; for (var option in inputDesc.values) { html += ""; } html += ""; } else { html = - '

" + "

" ); function saveOptions() { @@ -105,6 +112,8 @@ function DefaultHtmlStepUi(_sequencer, options) { // modify the url hash setUrlHashParameter("steps", _sequencer.toString()); + // disable the save button + $(step.ui.querySelector("div.details .btn-save")).prop("disabled",true); } // on clicking Save in the details pane of the step