File tree Expand file tree Collapse file tree 5 files changed +13
-11
lines changed
Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ Features
6969
7070Version
7171-----
72- ** SmartWizard v4.1.1 **
72+ ** SmartWizard v4.1.2 **
7373
7474License
7575----
Original file line number Diff line number Diff line change 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>"
Original file line number Diff line number Diff line change 1- /* SmartWizard v4.1.1
1+ /* SmartWizard v4.1.2
22 * jQuery Wizard Plugin
33 * http://www.techlaboratory.net/smartwizard
44 *
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 } ,
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 ( ) ;
You can’t perform that action at this time.
0 commit comments