fix save-sequence and refactor

Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
This commit is contained in:
tech4GT
2018-12-17 10:56:17 +05:30
parent 16debae154
commit 0c2d2a47d8
5 changed files with 33 additions and 30 deletions

View File

@@ -88,10 +88,10 @@ function IntermediateHtmlStepUi(_sequencer, step, options) {
$(this).removeClass('selected');
});
$(step.ui.querySelector("#insertStep select")).on('change', selectNewStepUi);
$(step.ui.querySelector("#insertStep #add-step-btn")).on('click', function() { doIt(id) });
$(step.ui.querySelector("#insertStep #add-step-btn")).on('click', function() { insert(id) });
}
function doIt(id) {
function insert(id) {
options = options || {};
var insertStepSelect = $("#insertStep select");