Guest User

Untitled

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