A javascript module to handle question tags editing.
- Source:
- Copyright:
- 2018 Simey Lameze
- 2018 Simey Lameze
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Methods
(inner) disableSaveButton(root)
Disable the save button in the footer.
Parameters:
Name | Type | Description |
---|---|---|
root |
object | The container element. |
(inner) enableSaveButton(root)
Enable the save button in the footer.
Parameters:
Name | Type | Description |
---|---|---|
root |
object | The container element. |
(inner) getFormData(modal) → {string}
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}
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)
Set the element state to loading.
Parameters:
Name | Type | Description |
---|---|---|
root |
object | The container element |
(inner) stopLoading(root)
Remove the loading state from the element.
Parameters:
Name | Type | Description |
---|---|---|
root |
object | The container element |