Guest User

Untitled

a guest
Jan 22nd, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. function leave_step_callback(obj, context) {
  2. var to_step = context.toStep;
  3. var step = context.fromStep; // Where you came from.
  4.  
  5. if ( step == 1 ) {
  6.  
  7. showStandardAssessment();
  8. $("#wizard a.buttonNext").hide();
  9. }
  10. ....
  11.  
  12. }
  13.  
  14.  
  15. function showStandardAssessment() {
  16.  
  17. // Go to tab 4 when pulling up a saved report
  18.  
  19.  
  20. if ( $("#saved_report").val() ) {
  21. // Wizard: Go to Step 4
  22. $("#wizard").smartWizard('enableStep', 2);
  23. $("#wizard").smartWizard('enableStep', 3);
  24. $("#wizard").smartWizard('enableStep', 4);
  25. $("#wizard").smartWizard('goToStep', 4); <---------------
  26.  
  27. refreshGroupsFromSavedReport();
  28. displayReportBySavedReport( $("#saved_report").val() );
  29. return true;
  30. }
  31. ......
  32. }
Add Comment
Please, Sign In to add comment