LocationFilterView

locationfilter. LocationFilterView

new LocationFilterView()

Source:

Extends

  • Backbone.View

Members

events

Source:
list of events for Backbone View

Methods

(static) initialize()

Source:
Initially sets data to model, initializes typeahead.js, and watches events on which view should be updated

addressLookup()

Source:
Looks for an address based on a value that is specified by user in input

autocomplete(args)

Source:
Gets text selected from typeahead suggestion and sets to model
Parameters:
Name Type Description
args Event Event object

detectLocation()

Source:

getAddress() → {String}

Source:
Get Address from input or from hash
Returns:
address from input or hash
Type
String

searchTextChanges(e) → {Boolean}

Source:
If enter was pressed, method calls "addressLookup"
Parameters:
Name Type Description
e Event Event object
Returns:
False if pressed enter. All other cases: True
Type
Boolean

translateUserLocation(lookupQuery)

Source:
Looks for an address and calls "XA.connector.mapsConnector.addressLookup"
Parameters:
Name Type Description
lookupQuery jQuery.<DomElement> Element where stored text for search location

updateHash(g, o) → {Object}

Source:
Updates hash according to setup of component and selected values by user
Parameters:
Name Type Description
g String location
o String facet name and sort method
Returns:
hash as an object
Type
Object

updateHash()

Source:
Updates hash according to setup of component and selected values by user