Fixes threshold bug (#1041)

* Fixes threshold bug

* Update examples/lib/defaultHtmlSequencerUi.js

Co-Authored-By: Divy123 <31225007+Divy123@users.noreply.github.com>

* Fix threshold module bug
This commit is contained in:
Slytherin
2019-04-28 02:48:20 +05:30
committed by Jeffrey Warren
parent 1aa9a0e99c
commit 269215f48b

View File

@@ -42,11 +42,12 @@ function DefaultHtmlSequencerUi(_sequencer, options) {
function addStepUi() {
if ($(addStepSel + " select").val() == "none") return;
var newStepName;
if(typeof arguments[0] !== "string")
newStepName = $(addStepSel + " select option").html().toLowerCase();
else newStepName = arguments[0]
var newStepName = $(addStepSel + " select").val();
if(!newStepName) newStepName = arguments[0]
/*
* after adding the step we run the sequencer from defined step
* and since loadImage is not a part of the drawarray the step lies at current