Methods
(inner) eventChangeLocale(event) → {void}
Change eventhandler for the locale select
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | change event |
- Source:
Returns:
- Type
- void
(inner) eventChangeTheme(event) → {void}
Change eventhandler for the theme select
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | change event |
- Source:
Returns:
- Type
- void
(inner) getBgImageList() → {void}
Gets the background images list and populates the select element
- Source:
Returns:
- Type
- void
(inner) getBgImageText(value) → {string}
Sets the text for the bgImage input
Parameters:
Name | Type | Description |
---|---|---|
value |
string | bgImage value |
- Source:
Returns:
bgImage text
- Type
- string
(inner) getTagMultiSelectValues(taglist, translate) → {string}
Gets all selected tags from a tag multiselect
Parameters:
Name | Type | Description |
---|---|---|
taglist |
HTMLElement | container of the checkboxes |
translate |
boolean | true = translate the name, else not |
- Source:
Returns:
comma separated list of selected tags
- Type
- string
(inner) initModalSettings() → {void}
Initialization function for the settings elements
- Source:
Returns:
- Type
- void
(inner) initTagMultiSelect(inputId, listId, allTags, enabledTags) → {void}
Initializes a tag multiselect
Parameters:
Name | Type | Description |
---|---|---|
inputId |
string | input element id to initialize |
listId |
string | list container element id to initialize |
allTags |
object | all tags to list |
enabledTags |
object | already enabled tags |
- Source:
Returns:
- Type
- void
(inner) populateSettingsFrm() → {void}
Populates the settings modal
- Source:
Returns:
- Type
- void
(inner) saveLocalSettings() → {boolean}
Save localSettings in browsers localStorage
- Source:
Returns:
true on success, else false
- Type
- boolean
(inner) savePartitionSettings(closeModal) → {void}
Saves the partition specific settings
Parameters:
Name | Type | Description |
---|---|---|
closeModal |
boolean | true = close modal, else not |
- Source:
Returns:
- Type
- void
(inner) savePartitionSettingsApply(obj) → {void}
Response handler for MYMPD_API_PARTITION_SAVE that closes the modal
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | jsonrpc response |
- Source:
Returns:
- Type
- void
(inner) savePartitionSettingsClose(obj) → {void}
Response handler for MYMPD_API_PARTITION_SAVE
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | jsonrpc response |
- Source:
Returns:
- Type
- void
(inner) saveSettings(target, closeModal) → {void}
Saves the settings
Parameters:
Name | Type | Description |
---|---|---|
target |
Element | triggering element |
closeModal |
boolean | true = close modal, else not |
- Source:
Returns:
- Type
- void
(inner) saveSettingsApply(obj) → {void}
Response handler for MYMPD_API_SETTINGS_SET
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | jsonrpc response |
- Source:
Returns:
- Type
- void
(inner) saveSettingsClose(obj) → {void}
Response handler for MYMPD_API_SETTINGS_SET that closes the modal
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | jsonrpc response |
- Source:
Returns:
- Type
- void
(inner) setFeatureBtnId(id, value) → {void}
Shows the warning for a disabled feature button (feature is not supported by the backend)
Parameters:
Name | Type | Description |
---|---|---|
id |
string | button id |
value |
boolean | true = enable button and hide warning false = disable button and show warning |
- Source:
Returns:
- Type
- void
(inner) toggleBtnNotifyWeb(event) → {void}
Event handler for the enable web notification button that requests the permission from the user
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | change event |
- Source:
Returns:
- Type
- void
(inner) toggleThemeInputs(theme) → {void}
Shows or hides the background color and image inputs
Parameters:
Name | Type | Description |
---|---|---|
theme |
string | theme name |
- Source:
Returns:
- Type
- void
(inner) warnLocale(value) → {void}
Shows the missing translations warning
Parameters:
Name | Type | Description |
---|---|---|
value |
string | locale name |
- Source:
Returns:
- Type
- void