Skip to content

Commit 160fd4c

Browse files
committed
Update jquery.steps.js
- Fixed a display issue related to the action anchors
1 parent f0b71d2 commit 160fd4c

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

js/jquery.steps.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery Steps Plugin v0.8.1 - A powerful jQuery wizard plugin that supports accessibility and HTML5
2+
* jQuery Steps Plugin v0.8.2 - A powerful jQuery wizard plugin that supports accessibility and HTML5
33
* https://github.com/rstaib/jquery-steps
44
*
55
* Copyright (c) 2013 Rafael J. Staib
@@ -19,10 +19,11 @@
1919
* - Implement functionality to skip a certain amount of steps
2020
* - Add insert and remove step method
2121
*/
22-
23-
/* Features:
22+
23+
24+
/* Planed Features:
2425
* - Progress bar
25-
*/
26+
*/
2627

2728

2829
(function ($)
@@ -610,22 +611,22 @@
610611
{
611612
if (state.stepCount == 0)
612613
{
613-
finish.hide();
614-
next.show().addClass("disabled");
614+
finish.parent().hide();
615+
next.addClass("disabled").parent().show();
615616
}
616617
else if (state.stepCount > 1 && state.stepCount > (state.currentIndex + 1))
617618
{
618-
finish.hide();
619-
next.show().removeClass("disabled");
619+
finish.parent().hide();
620+
next.removeClass("disabled").parent().show();
620621
}
621622
else if (!options.enableFinishButton)
622623
{
623624
next.addClass("disabled");
624625
}
625626
else
626627
{
627-
finish.show();
628-
next.hide().removeClass("disabled");
628+
finish.parent().show();
629+
next.removeClass("disabled").parent().hide();
629630
}
630631
}
631632
}
@@ -670,9 +671,9 @@
670671
var options = wizard.data("options");
671672
var $header = $(".content > .title:eq(" + index + ")", wizard);
672673
var $content = $header.next(".body");
673-
var mode = (isNaN($content.attr("data-mode")) || Number($content.attr("data-mode")) > 2) ?
674+
var mode = (isNaN($content.attr("data-mode")) || Number($content.attr("data-mode")) > 2) ?
674675
$.fn.steps.contentMode.html : Number($content.attr("data-mode"));
675-
var contentUrl = (mode === $.fn.steps.contentMode.html || $content.attr("data-url") === undefined) ?
676+
var contentUrl = (mode === $.fn.steps.contentMode.html || $content.attr("data-url") === undefined) ?
676677
"" : $content.attr("data-url");
677678
var contentLoaded = (mode !== $.fn.steps.contentMode.html && $content.attr("data-loaded") === "1");
678679

0 commit comments

Comments
 (0)