new LocationFilterView()
Extends
- Backbone.View
Members
events
list of events for Backbone View
Methods
(static) initialize()
Initially sets data to model, initializes typeahead.js, and watches events on which
view should be updated
addressLookup()
Looks for an address based on a value that is specified by user
in input
autocomplete(args)
Gets text selected from typeahead suggestion and sets to model
Parameters:
Name | Type | Description |
---|---|---|
args |
Event | Event object |
detectLocation()
getAddress() → {String}
Get Address from input or from hash
Returns:
address from input or hash
- Type
- String
searchTextChanges(e) → {Boolean}
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)
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}
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()
Updates hash according to setup of component and selected values by user