Skip to content

Fixed order in wich the Finish is triggered #9

@scastel83

Description

@scastel83

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

  • I'm using version* jQuery wizard v0.4.3
  • My browser is: Mac, Chrome
  • I am sure this issue is not a duplicate? Yes

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?

  1. [First Step] put an alertbox, and you will get the alert before the css has changed.
  2. [Second Step]
  3. [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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions