mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 12:19:58 +01:00
fixes #544 and final changes
Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
This commit is contained in:
@@ -34,15 +34,18 @@ function InsertStep(ref, image, index, name, o) {
|
||||
};
|
||||
var UI = ref.events;
|
||||
|
||||
// Tell UI that a step has been set up.
|
||||
o = o || {};
|
||||
// define the expandSteps function for sequencer
|
||||
ref.modules[name].expandSteps = function expandSteps(stepsArray) {
|
||||
for (var step of stepsArray) {
|
||||
ref.addSteps(step['name'], step['options']);
|
||||
}
|
||||
}
|
||||
|
||||
// Tell UI that a step has been set up.
|
||||
o = o || {};
|
||||
|
||||
if (!ref.modules[name][1].length) {
|
||||
UI.onSetup(o.step);
|
||||
UI.onSetup(o.step, { index: index });
|
||||
ref.images[image].steps.splice(index, 0, ref.modules[name][0](o, UI));
|
||||
} else {
|
||||
ref.modules[name][0](o, UI);
|
||||
|
||||
Reference in New Issue
Block a user