Skip to content

Commit 1f20257

Browse files
committed
Removed zoom reset to zero on taxonomy filtering to keep searched location in view, updated readme
1 parent 26ade28 commit 1f20257

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

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

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

@@ -2277,7 +2277,6 @@
22772277

22782278
if ($('#' + _this.settings.mapID).hasClass('bh-sl-map-open') === true) {
22792279
if ((olat) && (olng)) {
2280-
_this.settings.mapSettings.zoom = 0;
22812280
_this.processForm();
22822281
}
22832282
else {
@@ -2295,9 +2294,7 @@
22952294
if (_this.countFilters() === 0) {
22962295
_this.settings.mapSettings.zoom = originalZoom;
22972296
}
2298-
else {
2299-
_this.settings.mapSettings.zoom = 0;
2300-
}
2297+
23012298
_this.processForm();
23022299
}
23032300
else {
@@ -2323,7 +2320,6 @@
23232320
filters[filterKey] = [filterVal];
23242321
if ($('#' + _this.settings.mapID).hasClass('bh-sl-map-open') === true) {
23252322
if ((olat) && (olng)) {
2326-
_this.settings.mapSettings.zoom = 0;
23272323
_this.processForm();
23282324
}
23292325
else {

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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ filtering.
3535

3636
## Changelog
3737

38+
### Version 3.1.13
39+
40+
* Fixed additional disable filtering functionality related to select options and radio buttons by globally tracking the disabled values.
41+
* Removed zoom reset to zero on taxonomy filtering to keep searched location in view.
42+
* Updated maybeDisableFilterOptions to run when full map start or default location settings are enabled.
43+
3844
### Version 3.1.12
3945

4046
* Added automatic reset functionality that fires when address input field value is removed (changed to blank).

src/js/jquery.storelocator.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,7 +2273,6 @@
22732273

22742274
if ($('#' + _this.settings.mapID).hasClass('bh-sl-map-open') === true) {
22752275
if ((olat) && (olng)) {
2276-
_this.settings.mapSettings.zoom = 0;
22772276
_this.processForm();
22782277
}
22792278
else {
@@ -2291,9 +2290,7 @@
22912290
if (_this.countFilters() === 0) {
22922291
_this.settings.mapSettings.zoom = originalZoom;
22932292
}
2294-
else {
2295-
_this.settings.mapSettings.zoom = 0;
2296-
}
2293+
22972294
_this.processForm();
22982295
}
22992296
else {
@@ -2319,7 +2316,6 @@
23192316
filters[filterKey] = [filterVal];
23202317
if ($('#' + _this.settings.mapID).hasClass('bh-sl-map-open') === true) {
23212318
if ((olat) && (olng)) {
2322-
_this.settings.mapSettings.zoom = 0;
23232319
_this.processForm();
23242320
}
23252321
else {

0 commit comments

Comments
 (0)