Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sambadi opened this issue Nov 16, 2013 · 0 comments
Open

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

sambadi opened this issue Nov 16, 2013 · 0 comments

Comments

@sambadi
Copy link

sambadi commented Nov 16, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant