Editor - Settings - Neighborhood settings
This is the view that opens when the function showNeighborhoodSettings()
is used in the vieew theme/views/editor/settings/includes/places.html to update or add dropdown options
Main models
curDropdownoptions
: contains the information of the dropdown option that is sent when the view is openedcountries
:cities
:
Utility Functions
-updateNeighborhood(curDropdownoptions)
: used to update the dropdown option loaded in this view
addNeighborhood(curDropdownoptions)
: it's useful to add a new dropdown option
Example of base theme
curDropdownoptions
countries
: listed to select one value forcurDropdownoptions.country_id
cities
: listed to select one value forcurDropdownoptions.city_id
SAVE button switch to ADD button when
curDropdownoptions.id
is-1
Updated almost 6 years ago