mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 19:00:00 +01:00
Changed arrow functions to normal functions
This commit is contained in:
@@ -56,7 +56,7 @@ function DefaultHtmlStepUi(_sequencer, options) {
|
||||
</div>';
|
||||
|
||||
var util;
|
||||
setTimeout(()=>{
|
||||
setTimeout(function(){
|
||||
util=IntermediateHtmlStepUi(_sequencer,step)
|
||||
},500)
|
||||
|
||||
@@ -172,7 +172,7 @@ function DefaultHtmlStepUi(_sequencer, options) {
|
||||
parser.parseFromString(tools, "text/html").querySelector("div")
|
||||
);
|
||||
setTimeout(()=>{
|
||||
$(step.ui.querySelectorAll(".insert-step")).on('click',()=>util.insertStep(step.ID));
|
||||
$(step.ui.querySelectorAll(".insert-step")).on('click',function(){util.insertStep(step.ID)});
|
||||
},500)
|
||||
}
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ 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', () => doIt(id));
|
||||
$(step.ui.querySelector("#insertStep #add-step-btn")).on('click', function(){ doIt(id)});
|
||||
}
|
||||
|
||||
function doIt(id) {
|
||||
|
||||
Reference in New Issue
Block a user