Javascript for preview.
- Source:
- Copyright:
- 2021 Catalyst IT Australia Pty Ltd
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Methods
(inner) autocompleteOff(form)
Set the autocomplete off.
Parameters:
Name | Type | Description |
---|---|---|
form |
object | The form element. |
(inner) init(redirect, url)
Set up the actions.
Parameters:
Name | Type | Description |
---|---|---|
redirect |
bool | Redirect. |
url |
string | url to redirect. |
(inner) preventRepeatSubmission(form)
Event handler to stop a question form being submitted more than once.
Parameters:
Name | Type | Description |
---|---|---|
form |
object | The form element. |
(inner) removeClass(classname, form)
Removes a class inside an element.
Parameters:
Name | Type | Description |
---|---|---|
classname |
string | Class name. |
form |
object | The form element. |
(inner) scrollToSavedPos(form)
If there is a parameter like scrollpos=123 in the URL, scroll to that saved position. (Note: Moodle 4.0 and above do NOT support Internet Explorer 11 and below.)
Parameters:
Name | Type | Description |
---|---|---|
form |
object | The form element. |
(inner) setupQuestionForm(formElement)
Set up the form element to be displayed.
Parameters:
Name | Type | Description |
---|---|---|
formElement |
string | The form element. |