branch - jQuery branching backwards button -
i working built jquery wizard on site: http://kflorence.github.com/jquery-wizard/examples/ , 1 working "branching wizard." based on selections, go different questions/answers.
my problem built wizard 4 questions far, when hit "backwards" button go once. want able keep clicking "backwards" button go through previous questions went through.
i guessing section of code need edit? can't figure out:
select: function( event, step, branch, relative, history ) { // args: step, branch, relative, history if ( !( event instanceof $.event ) ) { history = relative; relative = branch; branch = step; step = event; event = undefined; } if ( step == undefined ) { return; } // args: [ step, branch ], relative, history if ( $.isarray( step ) ) { history = relative; relative = branch; branch = step[ 1 ]; step = step[ 0 ]; // args: step, relative, history } else if ( typeof branch === bool ) { history = relative; relative = branch; branch = undefined; } this._move( step, branch, relative, history, function( stepindex, stepstaken ) { this._update( event, this._state( stepindex, stepstaken ) ); }); },
edit: @kokos, have discovered works fine in firefox, not work in internet explorer!! have slightest idea how work in ie?
this has since been fixed in revision: https://github.com/kflorence/jquery-wizard/issues/4
Comments
Post a Comment