Skip to content

Do not proceed to the next step if it does not exist #46

@sambadi

Description

@sambadi

Sorry for my english :)

When call method $("#wizard").jWizard("next"); on last page, then blank page is opening, and any buttons are disabled. I use that check, to prevent this situation.

step : function($step) {
  var wizard = this, dfd = $.Deferred();
  if (typeof $step === "number") {
    $step = this.$steps.eq($step)
  }

  >>if(this.$steps.index($step)==-1)
    >>return;

May be it may be useful to anybody.

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