Skip to content

Commit 8441767

Browse files
author
meh-cfl
committed
Adding an event to be called before the step is shown.
1 parent df1722b commit 8441767

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/jquery.form.wizard.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@
325325
this.activatedSteps.push(step);
326326
}
327327
}
328+
329+
if(triggerStepShown) {
330+
(this.element).trigger('before_step_shown', $.extend({"isBackNavigation" : backwards},this._state()));
331+
}
328332

329333
if(this.currentStep !== step || step === this.firstStep){
330334
this.previousStep = this.currentStep;

0 commit comments

Comments
 (0)