Skip to content

Commit 304c34d

Browse files
committed
Fixed issue with new boundary search AJAX params after a full address search was made
1 parent fc87804 commit 304c34d

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery Google Maps Store Locator - v2.6.1 - 2016-06-26
1+
/*! jQuery Google Maps Store Locator - v2.6.1 - 2016-07-02
22
* http://www.bjornblog.com/web/jquery-store-locator-plugin
33
* Copyright (c) 2016 Bjorn Holine; Licensed MIT */
44

@@ -450,7 +450,7 @@
450450
formattedAddress = '';
451451

452452
// Define extra geocode result info
453-
if ( typeof geocodeData !== 'undefined' ) {
453+
if ( typeof geocodeData !== 'undefined' && typeof geocodeData.geometry.bounds !== 'undefined') {
454454
formattedAddress = geocodeData.formatted_address;
455455
northEast = JSON.stringify( geocodeData.geometry.bounds.getNorthEast() );
456456
southWest = JSON.stringify( geocodeData.geometry.bounds.getSouthWest() );

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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ filtering.
3939

4040
* Added additional error handling when the plugin checks the closest location.
4141
* Added listener for autoComplete change so that the search processes when a new place is selected.
42+
* Fixed [issue with new boundary search](https://github.com/bjorn2404/jQuery-Store-Locator-Plugin/issues/127) AJAX params after a full address search was made.
4243
* Merged in pull request from [noclat](https://github.com/noclat) that added autoCompleteOptions setting.
4344

4445
### Version 2.6.0

src/js/jquery.storelocator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@
447447
formattedAddress = '';
448448

449449
// Define extra geocode result info
450-
if ( typeof geocodeData !== 'undefined' ) {
450+
if ( typeof geocodeData !== 'undefined' && typeof geocodeData.geometry.bounds !== 'undefined') {
451451
formattedAddress = geocodeData.formatted_address;
452452
northEast = JSON.stringify( geocodeData.geometry.bounds.getNorthEast() );
453453
southWest = JSON.stringify( geocodeData.geometry.bounds.getSouthWest() );

0 commit comments

Comments
 (0)