mod_quiz/reopen_attempt_ui

This module has the code to make the Re-open attempt button work, if present.

That is, it looks for buttons with HTML like <button type="button" data-action="reopen-attempt" data-attempt-id="227000" data-after-action-url="/mod/quiz/report.php"> and if that is clicked, it first shows an 'Are you sure' pop-up, and if they are sure, the attempt is re-opened, and then the page reloads.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Methods

(async, inner) reopenButtonClicked(e)

Source:

Handle a click if it is on one of our buttons.

Parameters:
Name Type Description
e MouseEvent

the click event.