Skip to content

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

Open

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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