Skip to content

Commit faa2e50

Browse files
author
Rafael J. Staib
committed
Add basic form demo
1 parent dbf18fd commit faa2e50

16 files changed

+1314
-11
lines changed

JSteps.v11.suo

3.5 KB
Binary file not shown.

JSteps/App_Start/BundleConfig.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public static void RegisterBundles(BundleCollection bundles)
1616
.Include("~/Scripts/prettify.js"));
1717
bundles.Add(GetBaseScripts("~/Scripts/Examples")
1818
.Include("~/Scripts/jquery.steps.js")
19+
.Include("~/Scripts/jquery.validate.js")
1920
.Include("~/Scripts/prettify.js"));
2021

2122
bundles.Add(GetBaseStyles("~/Content/Base"));

JSteps/Content/examples.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
position: relative;
117117
display: block;
118118
width: 100%;
119-
height: 300px;
119+
height: 400px;
120120
overflow: hidden;
121121
}
122122

JSteps/JSteps.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@
165165
<Content Include="Scripts\jquery-1.10.2.min.js" />
166166
<Content Include="Scripts\jquery.steps.js" />
167167
<Content Include="Scripts\jquery.steps.min.js" />
168+
<Content Include="Scripts\jquery.validate.js" />
169+
<Content Include="Scripts\jquery.validate.min.js" />
168170
<Content Include="Scripts\prettify.js" />
169171
<Content Include="Scripts\social.js" />
170172
<Content Include="Scripts\tracking.js" />

JSteps/Scripts/jquery.steps.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery Steps v1.0.0pre - 08/13/2013
2+
* jQuery Steps v1.0.0pre - 08/14/2013
33
* Copyright (c) 2013 Rafael Staib (http://www.jquery-steps.com)
44
* Licensed under MIT http://www.opensource.org/licenses/MIT
55
*/
@@ -427,7 +427,7 @@ function paginationClickHandler(event)
427427
event.preventDefault();
428428

429429
var anchor = $(this),
430-
wizard = anchor.parents(":has(.steps)"),
430+
wizard = anchor.parent().parent().parent().parent(),
431431
options = getOptions(wizard),
432432
state = getState(wizard),
433433
href = anchor.attr("href");
@@ -793,13 +793,12 @@ function startTransitionEffect(wizard, options, state, index, oldIndex)
793793
case transitionEffect.slideLeft:
794794
var outerWidth = currentStep.outerWidth(true),
795795
posFadeOut = (index > oldIndex) ? -(outerWidth) : outerWidth,
796-
posFadeIn = (index > oldIndex) ? outerWidth : -(outerWidth),
797-
posLeft = 0; //currentStep.parent().position().left;
796+
posFadeIn = (index > oldIndex) ? outerWidth : -(outerWidth);
798797

799798
currentStep.animate({ left: posFadeOut }, effectSpeed,
800799
function () { $(this)._hideAria(); }).promise();
801800
newStep.css("left", posFadeIn + "px")._showAria()
802-
.animate({ left: posLeft }, effectSpeed).promise();
801+
.animate({ left: 0 }, effectSpeed).promise();
803802
break;
804803

805804
default:
@@ -814,7 +813,7 @@ function stepClickHandler(event)
814813
event.preventDefault();
815814

816815
var anchor = $(this),
817-
wizard = anchor.parents(":has(.steps)"),
816+
wizard = anchor.parent().parent().parent().parent(),
818817
options = getOptions(wizard),
819818
state = getState(wizard),
820819
oldIndex = state.currentIndex;

JSteps/Scripts/jquery.steps.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

JSteps/Scripts/jquery.steps.min.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)