Skip to content

Commit 80ec7e1

Browse files
committed
Removed hide map and results when there are no results in favor of just displaying the no results message and empty map
1 parent 775023d commit 80ec7e1

File tree

7 files changed

+18
-16
lines changed

7 files changed

+18
-16
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-storelocator-plugin",
3-
"version": "2.3.2",
3+
"version": "2.3.3",
44
"description": "This jQuery plugin takes advantage of Google Maps API version 3 to create an easy to implement store locator. No back-end programming is required, you just need to feed it KML, XML, or JSON data with all the location information.",
55
"repository": {
66
"type": "git",

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

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery Google Maps Store Locator - v2.3.2 - 2015-12-14
1+
/*! jQuery Google Maps Store Locator - v2.3.3 - 2015-12-21
22
* http://www.bjornblog.com/web/jquery-store-locator-plugin
33
* Copyright (c) 2015 Bjorn Holine; Licensed MIT */
44

@@ -1841,11 +1841,6 @@
18411841
_this.settings.callbackNoResults.call(this);
18421842
}
18431843

1844-
// Hide the map and locations if they're showing
1845-
if ($mapDiv.hasClass('bh-sl-map-open')) {
1846-
$this.hide();
1847-
}
1848-
18491844
// Append the no results message
18501845
noResults = $('<li><div class="bh-sl-noresults-title">' + _this.settings.noResultsTitle + '</div><br><div class="bh-sl-noresults-desc">' + _this.settings.noResultsDesc + '</li>').hide().fadeIn();
18511846

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

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-storelocator-plugin",
3-
"version": "2.3.2",
3+
"version": "2.3.3",
44
"description": "This jQuery plugin takes advantage of Google Maps API version 3 to create an easy to implement store locator. No back-end programming is required, you just need to feed it KML, XML, or JSON data with all the location information.",
55
"repository": {
66
"type": "git",

readme.md

+12
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,20 @@ Mustache templates, and the built-in helpers really come in handy. Depending on
2525
want them in the default location. If you’re developing something for mobile devices the templates can be pre-compiled
2626
for even faster loading.
2727

28+
### WordPress version
29+
30+
[Cardinal Store Locator plugin for WordPress](https://cardinalwp.com/) is now available, which uses this jQuery plugin
31+
as a base and all of the settings can be set via a settings page in the WP dashboard. It also integrates with core
32+
WordPress features such as custom post types for location data and custom taxonomies for location categorization and
33+
filtering.
34+
35+
2836
## Changelog
2937

38+
### Version 2.3.3
39+
40+
* Removed hide map and results when there are no results in favor of just displaying the no results message and empty map.
41+
3042
### Version 2.3.2
3143

3244
* Tweaked list label width styling.

src/js/jquery.storelocator.js

-5
Original file line numberDiff line numberDiff line change
@@ -1838,11 +1838,6 @@
18381838
_this.settings.callbackNoResults.call(this);
18391839
}
18401840

1841-
// Hide the map and locations if they're showing
1842-
if ($mapDiv.hasClass('bh-sl-map-open')) {
1843-
$this.hide();
1844-
}
1845-
18461841
// Append the no results message
18471842
noResults = $('<li><div class="bh-sl-noresults-title">' + _this.settings.noResultsTitle + '</div><br><div class="bh-sl-noresults-desc">' + _this.settings.noResultsDesc + '</li>').hide().fadeIn();
18481843

storelocator.jquery.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "jQuery Google Maps Store Locator",
44
"description": "This jQuery plugin takes advantage of Google Maps API version 3 to create an easy to implement store locator. No back-end programming is required, you just need to feed it KML, XML, or JSON data with all the location information.",
55
"keywords": ["jquery","locator","store", "location", "locations", "maps", "map", "stores", "find"],
6-
"version": "2.3.2",
6+
"version": "2.3.3",
77
"author": {
88
"name": "Bjorn Holine",
99
"url": "http://www.bjornblog.com/"

0 commit comments

Comments
 (0)