|
1 | 1 | /*!
|
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 |
3 | 3 | * https://github.com/rstaib/jquery-steps
|
4 | 4 | *
|
5 | 5 | * Copyright (c) 2013 Rafael J. Staib
|
|
19 | 19 | * - Implement functionality to skip a certain amount of steps
|
20 | 20 | * - Add insert and remove step method
|
21 | 21 | */
|
22 |
| - |
23 |
| -/* Features: |
| 22 | + |
| 23 | + |
| 24 | +/* Planed Features: |
24 | 25 | * - Progress bar
|
25 |
| -*/ |
| 26 | + */ |
26 | 27 |
|
27 | 28 |
|
28 | 29 | (function ($)
|
|
610 | 611 | {
|
611 | 612 | if (state.stepCount == 0)
|
612 | 613 | {
|
613 |
| - finish.hide(); |
614 |
| - next.show().addClass("disabled"); |
| 614 | + finish.parent().hide(); |
| 615 | + next.addClass("disabled").parent().show(); |
615 | 616 | }
|
616 | 617 | else if (state.stepCount > 1 && state.stepCount > (state.currentIndex + 1))
|
617 | 618 | {
|
618 |
| - finish.hide(); |
619 |
| - next.show().removeClass("disabled"); |
| 619 | + finish.parent().hide(); |
| 620 | + next.removeClass("disabled").parent().show(); |
620 | 621 | }
|
621 | 622 | else if (!options.enableFinishButton)
|
622 | 623 | {
|
623 | 624 | next.addClass("disabled");
|
624 | 625 | }
|
625 | 626 | else
|
626 | 627 | {
|
627 |
| - finish.show(); |
628 |
| - next.hide().removeClass("disabled"); |
| 628 | + finish.parent().show(); |
| 629 | + next.removeClass("disabled").parent().hide(); |
629 | 630 | }
|
630 | 631 | }
|
631 | 632 | }
|
|
670 | 671 | var options = wizard.data("options");
|
671 | 672 | var $header = $(".content > .title:eq(" + index + ")", wizard);
|
672 | 673 | 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) ? |
674 | 675 | $.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) ? |
676 | 677 | "" : $content.attr("data-url");
|
677 | 678 | var contentLoaded = (mode !== $.fn.steps.contentMode.html && $content.attr("data-loaded") === "1");
|
678 | 679 |
|
|
0 commit comments