Module: modalTimer_js

Methods

(inner) deleteTimer(el, timerid) → {void}

Deletes a timer
Parameters:
Name Type Description
el EventTarget triggering element
timerid number the timer id
Source:
Returns:
Type
void

(inner) deleteTimerCheckError(obj) → {void}

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

(inner) initModalTimer() → {void}

Initialization function for the timer elements
Source:
Returns:
Type
void

(inner) parseEditTimer(obj) → {void}

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

(inner) parseListTimer(obj) → {void}

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

(inner) prettyTimerAction(action, subaction) → {string}

Pretty prints the timer action
Parameters:
Name Type Description
action string the action
subaction string the sub action
Source:
Returns:
the translated action
Type
string

(inner) saveTimer(target) → {void}

Saves the timer
Parameters:
Name Type Description
target Element triggering element
Source:
Returns:
Type
void

(inner) saveTimerCheckError(obj) → {void}

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

(inner) selectTimerActionChange(valuesopt) → {void}

Handler for the timer action change event
Parameters:
Name Type Attributes Description
values object <optional>
argument values object
Source:
Returns:
Type
void

(inner) selectTimerIntervalChange(valueopt) → {void}

Handler for the timer interval select change event
Parameters:
Name Type Attributes Description
value number <optional>
the timer interval
Source:
Returns:
Type
void

(inner) showEditTimer(timerid) → {void}

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

(inner) showListTimer() → {void}

Shows the list timer tab
Source:
Returns:
Type
void

(inner) showTimerScriptArgs(optionEl, values) → {void}

Shows the arguments for a timer script
Parameters:
Name Type Description
optionEl HTMLElement the selected timer script option element
values object argument values object
Source:
Returns:
Type
void

(inner) toggleTimer(target, timerid) → {void}

Toggles the timer enabled state
Parameters:
Name Type Description
target EventTarget triggering element
timerid number the timer id
Source:
Returns:
Type
void