enrol_manual/quickenrolment

Description:
  • Quick enrolment AMD module.

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

Quick enrolment AMD module.

Members

(static, constant) init

Description:
  • Set up quick enrolment for the manual enrolment plugin.

Source:

Set up quick enrolment for the manual enrolment plugin.

Methods

(inner) getBodyForContext(contextId) → {Promise}

Description:
  • Get the content of the body for the specified context.

Source:
Parameters:
Name Type Description
contextId Number
Returns:
Type
Promise

(inner) getDynamicTableForElement(element) → {HTMLElement}

Description:
  • Get the dynamic table for the button.

Source:
Parameters:
Name Type Description
element HTMLElement
Returns:
Type
HTMLElement

(inner) registerEventListeners(contextId)

Description:
  • Register the event listeners for this contextid.

Source:
Parameters:
Name Type Description
contextId Number

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

Description:
  • Display the modal for this contextId.

Source:
Parameters:
Name Type Description
dynamicTable HTMLElement

The table to beb refreshed when changes are made

contextId Number
Returns:
Type
Promise

(inner) submitFormAjax(dynamicTable, modal)

Description:
  • Submit the form via ajax.

Source:
Parameters:
Name Type Description
dynamicTable HTMLElement
modal Object