Skip to content

Commit 9797249

Browse files
committed
Added functionality to fill in search input with determined address when using autoGeocode or geocodeID settings
1 parent be27cc1 commit 9797249

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

dist/assets/js/plugins/storeLocator/jquery.storelocator.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery Google Maps Store Locator - v3.0.0 - 2018-03-05
1+
/*! jQuery Google Maps Store Locator - v3.0.0 - 2018-05-06
22
* http://www.bjornblog.com/web/jquery-store-locator-plugin
33
* Copyright (c) 2018 Bjorn Holine; Licensed MIT */
44

@@ -1406,6 +1406,11 @@
14061406
mappingObj.origin = originAddress;
14071407
mappingObj.distance = distance;
14081408
_this.mapping(mappingObj);
1409+
1410+
// Fill in the search box.
1411+
if (typeof originAddress !== 'undefined') {
1412+
$('#' + _this.settings.addressID).val(originAddress);
1413+
}
14091414
} else {
14101415
// Unable to geocode
14111416
_this.notify(_this.settings.addressErrorAlert);

0 commit comments

Comments
 (0)