~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/media/tutorial.js

  • Committer: William Grant
  • Date: 2009-12-10 00:11:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1397.
  • Revision ID: grantw@unimelb.edu.au-20091210001102-axmok063a92ab6a0
Don't deal with previous attempts if not running in a worksheet -- there are none.

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
            set_saved_status(exerciseid, filename, "Saved");
89
89
            set_submit_status(exerciseid, filename, "Submit");
90
90
            /* Close the "view previous" area (force reload) */
91
 
            close_previous(exerciseid);
 
91
            if (worksheet)
 
92
                close_previous(exerciseid);
92
93
        }
93
94
    if (worksheet)
94
95
        attempts_path = (