Module: settings_js

Methods

(inner) getSettings(callbackopt) → {void}

Fetches all myMPD and MPD settings
Parameters:
Name Type Attributes Description
callback function <optional>
callback function to execute
Source:
Returns:
Type
void

(inner) parseMPDSettings() → {void}

Parses the MPD options
Source:
Returns:
Type
void

(inner) parseSettings(obj) → {boolean}

Parses the MYMPD_API_SETTINGS_GET jsonrpc response
Parameters:
Name Type Description
obj object jsonrpc response
Source:
Returns:
true on success, else false
Type
boolean

(inner) resetLocalSettings() → {void}

Removes all settings from localStorage
Source:
Returns:
Type
void

(inner) setNavbarIcons() → {void}

Populates the navbar with the icons
Source:
Returns:
Type
void

(inner) toggleHelp(modeopt) → {void}

Toggles the display of the help texts
Parameters:
Name Type Attributes Description
mode boolean <optional>
true=show help, false=hide help, undefined=toggle
Source:
Returns:
Type
void