Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function leave_step_callback(obj, context) {
- var to_step = context.toStep;
- var step = context.fromStep; // Where you came from.
- if ( step == 1 ) {
- showStandardAssessment();
- $("#wizard a.buttonNext").hide();
- }
- ....
- }
- function showStandardAssessment() {
- // Go to tab 4 when pulling up a saved report
- if ( $("#saved_report").val() ) {
- // Wizard: Go to Step 4
- $("#wizard").smartWizard('enableStep', 2);
- $("#wizard").smartWizard('enableStep', 3);
- $("#wizard").smartWizard('enableStep', 4);
- $("#wizard").smartWizard('goToStep', 4); <---------------
- refreshGroupsFromSavedReport();
- displayReportBySavedReport( $("#saved_report").val() );
- return true;
- }
- ......
- }
Add Comment
Please, Sign In to add comment