Module: modalSongDetails_js

Methods

(inner) getComments(uri, el) → {void}

Gets the song comments
Parameters:
Name Type Description
uri string song uri
el HTMLElement container to add the comments
Source:
Returns:
Type
void

(inner) initModalSongDetails() → {void}

Initialization function for song elements
Source:
Returns:
Type
void

(inner) parseFingerprint(obj) → {void}

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

(inner) parseSongDetails(obj) → {void}

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

(inner) songDetails(uri) → {void}

Shows the song details modal
Parameters:
Name Type Description
uri string song uri
Source:
Returns:
Type
void

(inner) songDetailsRow(thContent, tdContent) → {HTMLElement}

Adds a row to the song details modal
Parameters:
Name Type Description
thContent string text for th
tdContent HTMLElement | Node | string content element fot td
Source:
Returns:
created row
Type
HTMLElement