Skip to content

Commit 5e59d66

Browse files
author
Rafael J. Staib
committed
Add a fix for async content loading
1 parent a477596 commit 5e59d66

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
dist
22
build/dist
33
docs
4+
downloads
45
*~
56
*.diff
67
*.patch

jquery.steps.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@
735735
}
736736

737737
refreshActionState(wizard);
738+
loadAsyncContent(wizard);
738739
}
739740
}
740741

@@ -809,7 +810,7 @@
809810
switch (getValidEnumValue($.fn.steps.contentMode, state.currentStep.contentMode))
810811
{
811812
case $.fn.steps.contentMode.iframe:
812-
$(".content > .body", wizard).eq(state.currentIndex)
813+
$(".content > .body", wizard).eq(state.currentIndex).empty()
813814
.html($("<iframe src=\"" + state.currentStep.contentUrl + "\" />"))
814815
.data("loaded", "1");
815816
break;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jQuery-steps",
33
"title": "jQuery Wizard Plugin",
4-
"version": "0.9.2",
4+
"version": "0.9.3",
55
"description": "A powerful jQuery wizard plugin that supports accessibility and HTML5",
66
"homepage": "https://github.com/rstaib/jquery-steps",
77
"author": {

steps.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"accessibility",
1313
"validation"
1414
],
15-
"version": "0.9.2",
15+
"version": "0.9.3",
1616
"author": {
1717
"name": "Rafael J. Staib",
1818
"email": "rstaib@derklang.com",

0 commit comments

Comments
 (0)