Skip to content

Commit be18420

Browse files
committed
Fixed #58 and changed the default value of enableCancelButton to false
1 parent e9bf4e5 commit be18420

11 files changed

+15
-11
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.0.7
4+
- Small fix. Closes issue [#58](https://github.com/rstaib/jquery-steps/issues/58)
5+
- Set the default value of `enableCancelButton` for backward compatibility reasons to `false`
6+
37
## 1.0.6
48
- Small fix. Closes issue [#56](https://github.com/rstaib/jquery-steps/issues/56)
59

build/jQuery.Steps.1.0.6.nupkg

-19.4 KB
Binary file not shown.

build/jQuery.Steps.1.0.7.nupkg

19.4 KB
Binary file not shown.

build/jquery.steps-1.0.6.zip

-18.7 KB
Binary file not shown.

build/jquery.steps-1.0.7.zip

18.7 KB
Binary file not shown.

build/jquery.steps.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery Steps v1.0.6 - 04/27/2014
2+
* jQuery Steps v1.0.7 - 05/07/2014
33
* Copyright (c) 2014 Rafael Staib (http://www.jquery-steps.com)
44
* Licensed under MIT http://www.opensource.org/licenses/MIT
55
*/
@@ -832,7 +832,7 @@ function refreshPagination(wizard, options, state)
832832
}
833833
else
834834
{
835-
finish._showAria(options.enableFinishButton && state.stepCount >= (state.currentIndex + 1));
835+
finish._showAria(options.enableFinishButton && state.stepCount === (state.currentIndex + 1));
836836
next._showAria(state.stepCount === 0 || state.stepCount > (state.currentIndex + 1)).
837837
_enableAria(state.stepCount > (state.currentIndex + 1) || !options.enableFinishButton);
838838
}
@@ -1784,10 +1784,10 @@ var defaults = $.fn.steps.defaults = {
17841784
*
17851785
* @property enableCancelButton
17861786
* @type Boolean
1787-
* @default true
1787+
* @default false
17881788
* @for defaults
17891789
**/
1790-
enableCancelButton: true,
1790+
enableCancelButton: false,
17911791

17921792
/**
17931793
* Shows the finish button if enabled.

build/jquery.steps.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jquery-steps",
33
"title": "jQuery Steps",
4-
"version": "1.0.6",
4+
"version": "1.0.7",
55
"description": "A powerful jQuery wizard plugin that supports accessibility and HTML5",
66
"homepage": "http://www.jquery-steps.com",
77
"author": {

src/defaults.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ var defaults = $.fn.steps.defaults = {
193193
*
194194
* @property enableCancelButton
195195
* @type Boolean
196-
* @default true
196+
* @default false
197197
* @for defaults
198198
**/
199-
enableCancelButton: true,
199+
enableCancelButton: false,
200200

201201
/**
202202
* Shows the finish button if enabled.

src/privates.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ function refreshPagination(wizard, options, state)
772772
}
773773
else
774774
{
775-
finish._showAria(options.enableFinishButton && state.stepCount >= (state.currentIndex + 1));
775+
finish._showAria(options.enableFinishButton && state.stepCount === (state.currentIndex + 1));
776776
next._showAria(state.stepCount === 0 || state.stepCount > (state.currentIndex + 1)).
777777
_enableAria(state.stepCount > (state.currentIndex + 1) || !options.enableFinishButton);
778778
}

steps.jquery.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"tabs",
1515
"steps"
1616
],
17-
"version": "1.0.6",
17+
"version": "1.0.7",
1818
"author": {
1919
"name": "Rafael Staib",
2020
"email": "me@rafaelstaib.com",

0 commit comments

Comments
 (0)