Module: modalRadioFavoritesEdit_js

Methods

(inner) addToWebradioDb() → {void}

Adds the local webradio favorite to the WebradioDB
Source:
Returns:
Type
void

(inner) checkWebradioDb() → {void}

Checks the local webradio favorite against the webradioDB entry
Source:
Returns:
Type
void

(inner) compareWebradioDb(obj) → {boolean}

Compares the local webradio favorite with the entry from WebradioDB
Parameters:
Name Type Description
obj object jsonrpc response result
Source:
Returns:
true if entries are equal, else false
Type
boolean

(inner) initModalRadioFavoriteEdit() → {void}

Initialization function for modalRadioFavoriteEdit
Source:
Returns:
Type
void

(inner) manualAddRadioFavorite() → {void}

Shows the add webradio favorite modal
Source:
Returns:
Type
void

(inner) saveAsRadioFavorite(uri) → {void}

Gets the WebradioDB entry and shows the "Add to favorite modal"
Parameters:
Name Type Description
uri string Webradio Favorite uri
Source:
Returns:
Type
void

(inner) saveRadioFavorite(target) → {void}

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

(inner) saveRadioFavoriteCheckError(obj) → {void}

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

(inner) showEditRadioFavorite(obj) → {void}

Opens the edit modal and populates the values from obj
Parameters:
Name Type Description
obj object Jsonrpc response
Source:
Returns:
Type
void

(inner) updateFromWebradioDb() → {void}

Updates the local webradio favorite from WebradioDB
Source:
Returns:
Type
void

(inner) updateWebradioDb() → {void}

Updates the WebradioDB entry from the local webradio favorite
Source:
Returns:
Type
void