A javascript module to handle question tags editing.
- Source:
- Deprecated:
- since Moodle 4.0
- Copyright:
- 2018 Simey Lameze
- 2018 Simey Lameze
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- To Do:
-
- Final deprecation on Moodle 4.4 MDL-72438
Methods
(inner) disableSaveButton(root)
- Source:
Disable the save button in the footer.
Parameters:
Name | Type | Description |
---|---|---|
root |
object | The container element. |
(inner) enableSaveButton(root)
- Source:
Enable the save button in the footer.
Parameters:
Name | Type | Description |
---|---|---|
root |
object | The container element. |
(inner) getFormData(modal) → {string}
- Source:
Get the serialised form data.
Parameters:
Name | Type | Description |
---|---|---|
modal |
object | The modal object. |
Returns:
serialised form data
- Type
- string
(inner) save(modal, root) → {object}
- Source:
Send the form data to the server to save question tags.
Parameters:
Name | Type | Description |
---|---|---|
modal |
object | The modal object. |
root |
object | The container element. |
Returns:
A promise
- Type
- object
(inner) startLoading(root)
- Source:
Set the element state to loading.
Parameters:
Name | Type | Description |
---|---|---|
root |
object | The container element |
(inner) stopLoading(root)
- Source:
Remove the loading state from the element.
Parameters:
Name | Type | Description |
---|---|---|
root |
object | The container element |