Module: modalHomeIcon_js

Methods

(inner) _addHomeIcon(cmd, name, ligature, image, options) → {void}

Opens the add to homescreen modal, this function is called by the add*ToHome functions above.
Parameters:
Name Type Description
cmd string action
name string name for the home icon
ligature string ligature for the home icon
image string picture for the home icon
options object options array
Source:
Returns:
Type
void

(inner) _editHomeIcon(pos, replace, title) → {void}

The real edit home icon function
Parameters:
Name Type Description
pos number home icon position
replace boolean true = replace existing home icon, false = duplicate home icon
title string title for the modal
Source:
Returns:
Type
void

(inner) createHomeIconCmdOptionEl(name, value) → {HTMLElement}

Creates the form element to select the option value for home icon cmd
Parameters:
Name Type Description
name string name of the element
value string value of the element
Source:
Returns:
the created form element
Type
HTMLElement

(inner) filterHomeIconLigatures() → {void}

Event handler for ligature search
Source:
Returns:
Type
void

(inner) getHomeIconPictureList() → {void}

Populates the picture list in the home icon edit modal
Source:
Returns:
Type
void

(inner) initModalHomeIcon() → {void}

Initializes the modalHomeIcon
Source:
Returns:
Type
void

(inner) populateHomeIconCmdSelect(cmd, type) → {void}

Populates the cmd select box in the add to homescreen dialog
Parameters:
Name Type Description
cmd string command
type string one of album, song, dir, search, plist, smartpls
Source:
Returns:
Type
void

(inner) populateHomeIconLigatures() → {void}

Populates the ligatures dropdown
Source:
Returns:
Type
void

(inner) saveHomeIcon(target) → {void}

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

(inner) selectHomeIconLigature(el) → {void}

Event handler for selecting a ligature
Parameters:
Name Type Description
el EventTarget selected element
Source:
Returns:
Type
void

(inner) showHomeIconCmdOptions(values) → {void}

Changes the options in the home icon edit modal for the selected cmd.
Parameters:
Name Type Description
values Array values to set for the options
Source:
Returns:
Type
void