Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-41333

Some javascript error on Tests & Quizzes

    XMLWordPrintable

    Details

    • 19 status:
      Verified
    • 12 status:
      Resolved
    • Test Plan:
      Hide

      Steps Error 1.

      Instructor:

      Add an assessment
      Fill "Assessment Title"
      Mark "Create using assessment builder"
      Add Question "File Upload"
      Fill "Question Text"
      Click Save
      Click Settings
      As a time limit of, mark and select 1hr
      Click Save Settings and Publish
      Click Publish

      Student:
      Click the assessment
      Click "Begin Assessment"
      F12 on the keybord
      Click Console tab
      Click Save
      Error loaded is not defined

      -------------------

      Steps Error 3. (Doesn't happen on Test & Quizzes from Lesson Builder)

      Continue as Student from Error 1

      Select a file
      Click Upload
      Now click Remove (the file)
      Click Remove again
      Error undefined on Progress bar
      404 ERROR jquery.js:10254
      GET https://trunk-mysql.nightly.sakaiproject.org/portal/site/2ca85e75-2e6b-4df2-8363-a1981bf636d6/tool/c81a37f4-d198-4609-858f-2fc1faed0921/jsf/shared/getTimerProgress?ajax=true&_=1550577363531 404

      -------------------

      Steps Error 2.

      Instructor:

      Add an assessment
      Fill "Assessment Title"
      Mark "Create using assessment builder"
      Add Question "Hot Spot"
      Select Hot Spot image
      Upload the image
      Add an answer
      Click Save
      Click Settings
      As a time limit of, mark and select 1hr
      Click Save Settings and Publish
      Click Publish

      Student

      Click the assessment
      Click "Begin Assessment"
      Click on the image
      Click Save
      Error loaded is not defined
      Doesn't appear student's answer

      Show
      Steps Error 1. Instructor: Add an assessment Fill "Assessment Title" Mark "Create using assessment builder" Add Question "File Upload" Fill "Question Text" Click Save Click Settings As a time limit of, mark and select 1hr Click Save Settings and Publish Click Publish Student: Click the assessment Click "Begin Assessment" F12 on the keybord Click Console tab Click Save Error loaded is not defined ------------------- Steps Error 3. (Doesn't happen on Test & Quizzes from Lesson Builder) Continue as Student from Error 1 Select a file Click Upload Now click Remove (the file) Click Remove again Error undefined on Progress bar 404 ERROR jquery.js:10254 GET https://trunk-mysql.nightly.sakaiproject.org/portal/site/2ca85e75-2e6b-4df2-8363-a1981bf636d6/tool/c81a37f4-d198-4609-858f-2fc1faed0921/jsf/shared/getTimerProgress?ajax=true&_=1550577363531 404 ------------------- Steps Error 2. Instructor: Add an assessment Fill "Assessment Title" Mark "Create using assessment builder" Add Question "Hot Spot" Select Hot Spot image Upload the image Add an answer Click Save Click Settings As a time limit of, mark and select 1hr Click Save Settings and Publish Click Publish Student Click the assessment Click "Begin Assessment" Click on the image Click Save Error loaded is not defined Doesn't appear student's answer

      Description

      1. Variable loaded and function disableSave
        Error loaded: When you try to save the assessment
        Error disableSave: When you try to send the assessment from table of contents
      2. Don't appear student's answers on hot spot questions
      3. When a student try to remove an upload file (upload file question) on a timed assessment

       

      These are the three errors explained:

      1. When you are on an assessment and student tries to save it, the error in the first screenshot appears because there is an undefined variable. DisableSave does not exists and it is unnecessary to keep it. It is needed to change variable loaded by its supossed value because it is undefined too. (first commit in the PR)
      2. qtip plugin required images are not loaded (some images are heavier than others) and so we need to wait until all page has loaded (2nd commit)
      3. RemoveMedia.jsp is in shared folder and when student tries to delete a file they can't see time variables because routePrefix is not correct, it supposes to be on same URL ("") but it's on "../delivery" because all other jsp assessment files are on "delivery" folder so we unify URL call. Also, showTimer is showed when students try to delete files. (3rd PR commit)

       

      You can also watch attached images for screen location.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jesusmmp Jesus Maria Mendez
                  Reporter:
                  jesusmmp Jesus Maria Mendez
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code