mod_quiz/preflightcheck

This class manages the confirmation pop-up (also called the pre-flight check) that is sometimes shown when a use clicks the start attempt button.

This is also responsible for opening the pop-up window, if the quiz requires to be in one.

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

Methods

(static) displayDialogue(e)

Source:

Display the dialogue.

Parameters:
Name Type Description
e Y.EventFacade

the event being responded to, if any.

(static) hideDialogue(e)

Source:

Hide the dialogue.

Parameters:
Name Type Description
e Y.EventFacade

the event being responded to, if any.

(static) init(startButton, confirmationTitle, confirmationForm, popupoptions)

Source:

Initialise the start attempt button.

Parameters:
Name Type Description
startButton String

the id of the start attempt button that we will be enhancing.

confirmationTitle String

the title of the dialogue.

confirmationForm String

selector for the confirmation form to show in the dialogue.

popupoptions String

If not null, the quiz should be launced in a pop-up.

(static) launchQuizPopup(e, popupoptions)

Source:

Event handler for the quiz start attempt button.

Parameters:
Name Type Description
e Event

the event being responded to

popupoptions Object