Skip to content

Commit b841fec

Browse files
author
Rafael Staib
committed
Change branch name and some other changes
1 parent be0fc3e commit b841fec

11 files changed

+351
-63
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Changelog
22

3-
## 1.0.2
3+
## 1.1.0
44

55
- Adding an id to the outer control wrapper tag will have as of now an impact on the internal uniqueid handling and therefore to the sub tag ids as well
66
- Bug fix for having the same tag for titles and panels
77
- AJAX crawling scheme support for SEO
88
- History support for newer browsers (pushState) [#5](https://github.com/rstaib/jquery-steps/issues/5)
99
- Dynamic height calculation [#8](https://github.com/rstaib/jquery-steps/issues/8)
10+
- AMD support
1011

1112
## 1.0.1
1213

CNAME

-1
This file was deleted.

build/jquery.steps-1.0.2.zip

-12.6 KB
Binary file not shown.

build/jquery.steps-1.1.0.zip

12.8 KB
Binary file not shown.

build/jquery.steps.js

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery Steps v1.0.2 - 08/25/2013
2+
* jQuery Steps v1.1.0 - 09/28/2013
33
* Copyright (c) 2013 Rafael Staib (http://www.jquery-steps.com)
44
* Licensed under MIT http://www.opensource.org/licenses/MIT
55
*/
@@ -111,6 +111,22 @@ function format(value)
111111
return value;
112112
}
113113

114+
function getCurrentEnumKey(enumType, value)
115+
{
116+
validateArgument("enumType", enumType);
117+
validateArgument("value", value);
118+
119+
for (var key in enumType)
120+
{
121+
if (enumType[key] === value)
122+
{
123+
return key;
124+
}
125+
}
126+
127+
throwError("Invalid enum value '{0}'.", value);
128+
}
129+
114130
function getStepAnchor(wizard, index)
115131
{
116132
var uniqueId = getUniqueId(wizard);
@@ -621,14 +637,16 @@ function render(wizard, options, state)
621637
var wrapperTemplate = "<{0} class=\"{1}\">{2}</{0}>",
622638
orientation = getValidEnumValue(stepsOrientation, options.stepsOrientation),
623639
verticalCssClass = (orientation === stepsOrientation.vertical) ? " vertical" : "",
640+
effect = getValidEnumValue(transitionEffect, options.transitionEffect),
641+
effectCssClass = getCurrentEnumKey(transitionEffect, effect) + "Fx",
624642
contentWrapper = $(format(wrapperTemplate, options.contentContainerTag, "content " + options.clearFixCssClass, wizard.html())),
625643
stepsWrapper = $(format(wrapperTemplate, options.stepsContainerTag, "steps " + options.clearFixCssClass, "<ul role=\"tablist\"></ul>")),
626644
stepTitles = contentWrapper.children(options.headerTag),
627645
stepContents = contentWrapper.children(options.bodyTag);
628646

629647

630648
wizard.attr("role", "application").empty().append(stepsWrapper).append(contentWrapper)
631-
.addClass(options.cssClass + " " + options.clearFixCssClass + verticalCssClass);
649+
.addClass(options.cssClass + " " + effectCssClass + " " + options.clearFixCssClass + verticalCssClass);
632650

633651

634652
stepContents.each(function (index)
@@ -1004,6 +1022,8 @@ var defaults = $.fn.steps.defaults = {
10041022

10051023
autoFocus: false,
10061024

1025+
dynamicHeight: false,
1026+
10071027
enableAllSteps: false,
10081028

10091029
enableKeyNavigation: true,

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.

0 commit comments

Comments
 (0)