- Description:
Handle actions on learning plan templates via ajax.
- Source:
- Copyright:
- 2015 Damyon Wiese
- 2015 Damyon Wiese
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Handle actions on learning plan templates via ajax.
Members
(inner) Action :Boolean
- Description:
to apply to plans when deleting a template
- Source:
to apply to plans when deleting a template
Type:
- Boolean
(inner) pagecontextid :Number
- Description:
The id of the context
- Source:
The id of the context
Type:
- Number
(inner) templateid :Number
- Description:
The id of the template
- Source:
The id of the template
Type:
- Number
Methods
(inner) confirmDelete(e)
- Description:
Handler for "Delete learning plan template" actions.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
e |
Event |
(inner) deleteHandler(e)
- Description:
Expose the event handler for the delete.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
e |
Event |
(inner) doDelete()
- Description:
Delete a template and reload the page.
- Source:
(inner) doDuplicate(e)
- Description:
Duplicate a template and reload the page.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
e |
Event |
(inner) duplicateHandler(e)
- Description:
Expose the event handler for the duplicate.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
e |
Event |
(inner) init(contextid)
- Description:
Initialise the module.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
contextid |
Number | The context id of the page. |
(inner) reloadList(context)
- Description:
Callback to render the page template again and update the page.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
context |
Object | The context for the template. |
(inner) updatePage(newhtml, newjs)
- Description:
Callback to replace the dom element with the rendered template.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
newhtml |
String | The new html to insert. |
newjs |
String | The new js to run. |