From 269215f48b196163c28e143e7ad2419db6598ab1 Mon Sep 17 00:00:00 2001 From: Slytherin <31225007+Divy123@users.noreply.github.com> Date: Sun, 28 Apr 2019 02:48:20 +0530 Subject: [PATCH] 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 --- examples/lib/defaultHtmlSequencerUi.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/lib/defaultHtmlSequencerUi.js b/examples/lib/defaultHtmlSequencerUi.js index 0ec0e9cc..217fcf84 100644 --- a/examples/lib/defaultHtmlSequencerUi.js +++ b/examples/lib/defaultHtmlSequencerUi.js @@ -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