Skip to content

Commit

Permalink
v4.1.2 - Patch update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dipu Raj committed Jan 9, 2017
1 parent 48d7efc commit ecec558
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Features

Version
-----
**SmartWizard v4.1.1**
**SmartWizard v4.1.2**

License
----
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smartwizard",
"version": "v4.1.1",
"version": "v4.1.2",
"homepage": "https://github.com/techlab/SmartWizard",
"authors": [
"Dipu Raj <[email protected]>"
Expand Down
14 changes: 8 additions & 6 deletions js/jquery.smartWizard.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* SmartWizard v4.1.1
/* SmartWizard v4.1.2
* jQuery Wizard Plugin
* http://www.techlaboratory.net/smartwizard
*
Expand Down Expand Up @@ -88,13 +88,15 @@
if(elm.length > 0){
var id = this.steps.index(elm);
idx = (id >= 0) ? id : idx;
if(idx > 0 && this.options.anchorSettings.markDoneStep && this.options.anchorSettings.markAllPreviousStepsAsDone){
// Mark previous steps of the active step as done
this.steps.eq(idx).parent('li').prevAll().addClass("done");
}
}
}
}

if(idx > 0 && this.options.anchorSettings.markDoneStep && this.options.anchorSettings.markAllPreviousStepsAsDone){
// Mark previous steps of the active step as done
this.steps.eq(idx).parent('li').prevAll().addClass("done");
}

// Show the initial step
this._showStep(idx);
},
Expand Down Expand Up @@ -501,7 +503,7 @@
this.pages.stop(true);
this.pages.hide();
this.current_index = null;
window.location.hash = this.steps.eq(this.options.selected).attr("href");
this._setURLHash(this.steps.eq(this.options.selected).attr("href"));
$(".sw-toolbar", this.main).remove();
this.steps.removeClass();
this.steps.parents('li').removeClass();
Expand Down
Loading

0 comments on commit ecec558

Please sign in to comment.