Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear iframe in SG if student has no submission
When we switch students in SpeedGrader and the new student has no submission, clear the contents of the submission-holding iframe rather than merely hiding it. This prevents an issue with per-question quiz grading (which is intended to retain selection on the selected question when moving between users) that could occur when selecting a student who had not yet submitted anything, since the contents of the now-hidden iframe were receiving events that assumed they were visible. fixes GRADE-1322 Test plan: * Have a course with a couple students * Create a quiz with a few questions (enough that the quiz would not all fit on the screen in SpeedGrader) * Fill out the quiz for several students * As a teacher, open the quiz in SpeedGrader * From the settings menu, enable the "Grade by question" option (this should reload the page automatically) * When you navigate between students in the following ways, check that the currently-focused question remains focused for the new student. (That is, if you had (say) question #3 selected before switching students, the new student's answer to question #3 should be shown.) * From a student who has taken the quiz to another student who has taken it * From a student who has taken the quiz, to one who has not, then back to one who has taken it Change-Id: I23d14b05441a9ada02b9adb68a4ca95804c7c93a Reviewed-on: https://gerrit.instructure.com/157995 Reviewed-by: Gary Mei <[email protected]> Tested-by: Jenkins Reviewed-by: Spencer Olson <[email protected]> QA-Review: James Butters <[email protected]> Product-Review: Sidharth Oberoi <[email protected]>
- Loading branch information