- Description:
Contain the logic for the question bank modal.
- Source:
- Copyright:
- 2018 Ryan Wyllie
- 2018 Ryan Wyllie
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Contain the logic for the question bank modal.
Methods
(inner) handleAddToQuizEvent(e, anchorElement)
- Description:
Update the URL of the anchor element that the user clicked on to make sure that the question is added to the correct page.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
e |
event | A JavaScript event |
anchorElement |
object | The anchor element that was triggered |
(inner) registerEventListeners()
- Description:
Set up all of the event handling for the modal.
- Source:
(inner) reloadBodyContent(querystring)
- Description:
Replaces the current body contents with a new version of the question bank.
The contents of the question bank are generated using the provided query string.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
querystring |
string | URL encoded string. |
(inner) show() → {void}
- Description:
Override the parent show function.
Reload the body contents when the modal is shown. The current window URL is used to inform the new content that should be displayed.
- Source:
Returns:
- Type
- void