- Description:
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
A javascript module to handle question tags editing.
Methods
(inner) disableSaveButton(root)
- Description:
Disable the save button in the footer.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
root |
object | The container element. |
(inner) enableSaveButton(root)
- Description:
Enable the save button in the footer.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
root |
object | The container element. |
(inner) getFormData(modal) → {string}
- Description:
Get the serialised form data.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
modal |
object | The modal object. |
Returns:
serialised form data
- Type
- string
(inner) save(modal, root) → {object}
- Description:
Send the form data to the server to save question tags.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
modal |
object | The modal object. |
root |
object | The container element. |
Returns:
A promise
- Type
- object
(inner) startLoading(root)
- Description:
Set the element state to loading.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
root |
object | The container element |
(inner) stopLoading(root)
- Description:
Remove the loading state from the element.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
root |
object | The container element |