Skip to content

Commit ecec558

Browse files
author
Dipu Raj
committed
v4.1.2 - Patch update
1 parent 48d7efc commit ecec558

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Features
6969

7070
Version
7171
-----
72-
**SmartWizard v4.1.1**
72+
**SmartWizard v4.1.2**
7373

7474
License
7575
----

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "smartwizard",
3-
"version": "v4.1.1",
3+
"version": "v4.1.2",
44
"homepage": "https://github.com/techlab/SmartWizard",
55
"authors": [
66
"Dipu Raj <hello@techlaboratory.net>"

js/jquery.smartWizard.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SmartWizard v4.1.1
1+
/* SmartWizard v4.1.2
22
* jQuery Wizard Plugin
33
* http://www.techlaboratory.net/smartwizard
44
*
@@ -88,13 +88,15 @@
8888
if(elm.length > 0){
8989
var id = this.steps.index(elm);
9090
idx = (id >= 0) ? id : idx;
91-
if(idx > 0 && this.options.anchorSettings.markDoneStep && this.options.anchorSettings.markAllPreviousStepsAsDone){
92-
// Mark previous steps of the active step as done
93-
this.steps.eq(idx).parent('li').prevAll().addClass("done");
94-
}
9591
}
9692
}
9793
}
94+
95+
if(idx > 0 && this.options.anchorSettings.markDoneStep && this.options.anchorSettings.markAllPreviousStepsAsDone){
96+
// Mark previous steps of the active step as done
97+
this.steps.eq(idx).parent('li').prevAll().addClass("done");
98+
}
99+
98100
// Show the initial step
99101
this._showStep(idx);
100102
},
@@ -501,7 +503,7 @@
501503
this.pages.stop(true);
502504
this.pages.hide();
503505
this.current_index = null;
504-
window.location.hash = this.steps.eq(this.options.selected).attr("href");
506+
this._setURLHash(this.steps.eq(this.options.selected).attr("href"));
505507
$(".sw-toolbar", this.main).remove();
506508
this.steps.removeClass();
507509
this.steps.parents('li').removeClass();

0 commit comments

Comments
 (0)