enrol_manual/quickenrolment

Quick enrolment AMD module.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(static, constant) init

Source:

Set up quick enrolment for the manual enrolment plugin.

Methods

(inner) getBodyForContext(contextId) → {Promise}

Source:

Get the content of the body for the specified context.

Parameters:
Name Type Description
contextId Number
Returns:
Type
Promise

(inner) getDynamicTableForElement(element) → {HTMLElement}

Source:

Get the dynamic table for the button.

Parameters:
Name Type Description
element HTMLElement
Returns:
Type
HTMLElement

(inner) registerEventListeners(contextId)

Source:

Register the event listeners for this contextid.

Parameters:
Name Type Description
contextId Number

(inner) showModal(dynamicTable, contextId) → {Promise}

Source:

Display the modal for this contextId.

Parameters:
Name Type Description
dynamicTable HTMLElement

The table to beb refreshed when changes are made

contextId Number
Returns:
Type
Promise

(inner) submitFormAjax(dynamicTable, modal)

Source:

Submit the form via ajax.

Parameters:
Name Type Description
dynamicTable HTMLElement
modal Object