value: function finish() {
if (this._current === this.lastIndex()) {
var current = this.current();
if (current.validate()) {
current.leave('error');
current.enter('done');
this.trigger('finish');<<--- put it here after done , so we are sure the CSS does note change after the finish is triggerd.
} else {
current.enter('error');
}
}
#here i put my reset on finish event, but always had the green of done on a tab element..
$('#exampleWizardForm').on('wizard::finish', function (e) {
resetmyWizardry();
});
Checklist
Description
[Description of the bug, enhancement, or question]
Problem, finish event is triggered before css changes..
[Please tag accordingly]
How can we reproduce this bug?
- [First Step] put an alertbox, and you will get the alert before the css has changed.
- [Second Step]
- [and so on...]
What did you expect to happen?
i wanted to reset the wizard and have all the tabs, be the same color,
but when i did reset i stil had the finish tab color load after my finish event,
What happened instead?
finish -> did a reset, and i still see last tab in green.
value: function finish() {
if (this._current === this.lastIndex()) {
var current = this.current();
#here i put my reset on finish event, but always had the green of done on a tab element..
Checklist
Description
[Description of the bug, enhancement, or question]
Problem, finish event is triggered before css changes..
[Please tag accordingly]
How can we reproduce this bug?
What did you expect to happen?
i wanted to reset the wizard and have all the tabs, be the same color,
but when i did reset i stil had the finish tab color load after my finish event,
What happened instead?
finish -> did a reset, and i still see last tab in green.