Module: modalVariables_js

Methods

(inner) deleteVariables(key) → {void}

Deletes a scripts variable
Parameters:
Name Type Description
key string script variable to delete
Source:
Returns:
Type
void

(inner) deleteVariablesCheckError(obj) → {void}

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

(inner) getVariablesList() → {void}

Gets the list of scripts
Source:
Returns:
Type
void

(inner) initModalVariables() → {void}

Initialization functions for the script elements
Source:
Returns:
Type
void

(inner) parseVariablesList(obj) → {void}

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

(inner) setVariables() → {void}

Saves a scripts variable
Source:
Returns:
Type
void

(inner) setVariablesCheckError(obj) → {void}

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

(inner) showListVariablesModal() → {void}

Opens the variables modal and shows the list tab
Source:
Returns:
Type
void

(inner) showVariablesEdit(el, editVar) → {void}

Edits a scripts variable
Parameters:
Name Type Description
el EventTarget row with the data
editVar boolean edit variable?
Source:
Returns:
Type
void

(inner) showVariablesList() → {void}

Shows the scripts variables tab
Source:
Returns:
Type
void