Skip to content

Commit 526ec37

Browse files
author
Rafael J. Staib
committed
Fix a bug with multiple wizards in one page
1 parent 51b393d commit 526ec37

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

build/jquery.steps.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ function paginationClickHandler(event)
427427
event.preventDefault();
428428

429429
var anchor = $(this),
430-
wizard = anchor.parents(":has(.steps)"),
430+
wizard = anchor.parent().parent().parent().parent(),
431431
options = getOptions(wizard),
432432
state = getState(wizard),
433433
href = anchor.attr("href");
@@ -776,7 +776,7 @@ function startTransitionEffect(wizard, options, state, index, oldIndex)
776776
state.transitionElement = newStep;
777777
currentStep[hide](effectSpeed, function ()
778778
{
779-
var wizard = $(this)._hideAria().parents(":has(.steps)"),
779+
var wizard = $(this)._hideAria().parent().parent().parent(),
780780
state = getState(wizard);
781781

782782
if (state.transitionElement)
@@ -813,7 +813,7 @@ function stepClickHandler(event)
813813
event.preventDefault();
814814

815815
var anchor = $(this),
816-
wizard = anchor.parents(":has(.steps)"),
816+
wizard = anchor.parent().parent().parent().parent(),
817817
options = getOptions(wizard),
818818
state = getState(wizard),
819819
oldIndex = state.currentIndex;

0 commit comments

Comments
 (0)