Skip to content

Commit 6a51ce4

Browse files
committed
Add fix for IE10 compatibility mode
1 parent 3c6f177 commit 6a51ce4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jquery.steps.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@
466466

467467
var anchor = $(this);
468468
var wizard = anchor.parents(".wizard");
469-
switch (anchor.attr("href"))
469+
switch (anchor.attr("href").substring(anchor.attr("href").lastIndexOf("#")))
470470
{
471471
case "#finish":
472472
wizard.steps("finish");
@@ -775,12 +775,12 @@
775775

776776
if (options.enablePagination)
777777
{
778-
var finish = $(".actions a[href='#finish']", wizard).parent();
779-
var next = $(".actions a[href='#next']", wizard).parent();
778+
var finish = $(".actions a[href$='#finish']", wizard).parent();
779+
var next = $(".actions a[href$='#next']", wizard).parent();
780780

781781
if (!options.forceMoveForward)
782782
{
783-
var previous = $(".actions a[href='#previous']", wizard).parent();
783+
var previous = $(".actions a[href$='#previous']", wizard).parent();
784784
if (state.currentIndex > 0)
785785
{
786786
previous.removeClass("disabled");

0 commit comments

Comments
 (0)