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
Methods
(inner) handleAddToQuizEvent(e, anchorElement)
Update the URL of the anchor element that the user clicked on to make sure that the question is added to the correct page.
Parameters:
Name | Type | Description |
---|---|---|
e |
event | A JavaScript event |
anchorElement |
object | The anchor element that was triggered |
(inner) registerEventListeners()
Set up all of the event handling for the modal.
(inner) reloadBodyContent(querystring)
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.
Parameters:
Name | Type | Description |
---|---|---|
querystring |
string | URL encoded string. |
(inner) show() → {void}
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.
Returns:
- Type
- void