Module: modalTrigger_js

Methods

(inner) deleteTrigger(el, id) → {void}

Deletes a trigger after confirmation
Parameters:
Name Type Description
el EventTarget triggering element
id number trigger id
Source:
Returns:
Type
void

(inner) deleteTriggerCheckError(obj) → {void}

Handler for the MYMPD_API_TRIGGER_SAVE jsonrpc response
Parameters:
Name Type Description
obj object jsonrpc response
Source:
Returns:
Type
void

(inner) initModalTrigger() → {void}

Initialization function for trigger elements
Source:
Returns:
Type
void

(inner) parseTriggerEdit(obj) → {void}

Parses the MYMPD_API_TRIGGER_GET jsonrpc response
Parameters:
Name Type Description
obj object jsonrpc response
Source:
Returns:
Type
void

(inner) parseTriggerList(obj) → {void}

Parses the MYMPD_API_TRIGGER_LIST jsonrpc response
Parameters:
Name Type Description
obj object jsonrpc response
Source:
Returns:
Type
void

(inner) populateTriggerEvents() → {void}

Populates the trigger event select
Source:
Returns:
Type
void

(inner) saveTrigger(target) → {void}

Saves a trigger
Parameters:
Name Type Description
target Element triggering element
Source:
Returns:
Type
void

(inner) saveTriggerCheckError(obj) → {void}

Handler for the MYMPD_API_TRIGGER_SAVE jsonrpc response
Parameters:
Name Type Description
obj object jsonrpc response
Source:
Returns:
Type
void

(inner) selectTriggerActionChange(valuesopt) → {void}

Calls showTriggerScriptArgs for the selected script
Parameters:
Name Type Attributes Description
values object <optional>
array of values for the script arguments
Source:
Returns:
Type
void

(inner) showEditTrigger(id) → {void}

Shows the edit trigger tab
Parameters:
Name Type Description
id number trigger id
Source:
Returns:
Type
void

(inner) showListTrigger() → {void}

Shows the trigger list tab
Source:
Returns:
Type
void

(inner) showTriggerScriptArgs(option, values) → {void}

Shows the list of arguments and values for the selected script
Parameters:
Name Type Description
option HTMLElement selected option from script select
values object array of values for the script arguments
Source:
Returns:
Type
void