Patch for UI

This commit is contained in:
Chinmay Pandhare
2017-07-28 18:01:22 +05:30
parent ec4459309b
commit 2888c2d735
4 changed files with 70 additions and 36 deletions

View File

@@ -8,11 +8,18 @@ function AddStep(ref, image, name, o) {
o.container = o_.container || ref.options.selector;
o.image = image;
var UI = ref.UI({
o.identity = {
stepName: o.name,
stepID: o.number,
imageName: o.image
});
};
o.UIFs = ref.UI();
var UI = {
onSetup: function(){o.UIFs.onSetup(o.identity);},
onDraw: function(){o.UIFs.onSetup(o.identity);},
onComplete: function(out){o.UIFs.onSetup(o.identity,out);},
onRemove: function(){o.UIFs.onSetup(o.identity);},
}
var module = ref.modules[name](o,UI);
ref.images[image].steps.push(module);