core_calendar/manage_subscriptions

Description:
  • A module to handle Delete/Update operations of the manage subscription page.

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

A module to handle Delete/Update operations of the manage subscription page.

Members

(static, constant) init

Description:
  • Initialises.

Source:

Initialises.

Methods

(inner) createModal(element, messageCode) → {promise}

Description:
  • Create modal.

Source:
Parameters:
Name Type Description
element HTMLElement
messageCode string

Message code.

Returns:

Promise for modal

Type
promise

(inner) getSubscriptionId(element) → {Number}

Description:
  • Get subscription id for given element.

Source:
Parameters:
Name Type Description
element HTMLElement

update/delete link

Returns:
Type
Number

(inner) getSubscriptionName(element) → {String}

Description:
  • Get subscription name for given element.

Source:
Parameters:
Name Type Description
element HTMLElement

update/delete link

Returns:
Type
String

(inner) getSubscriptionRow(subscriptionId) → {Element}

Description:
  • Get subscription table row for subscription id.

Source:
Parameters:
Name Type Description
subscriptionId string

Subscription id

Returns:
Type
Element

(inner) registerEventListeners()

Description:
  • Register events for update/delete links.

Source:

(async, inner) responseHandlerForDelete(element, data) → {Promise}

Description:
  • Response handler for delete action.

Source:
Parameters:
Name Type Description
element HTMLElement
data Object
Returns:
Type
Promise