Skip to content

Commit 0e0c7e3

Browse files
committed
Fixed a bug where infowindows wouldn't open if the map div was changed
1 parent 6853fb7 commit 0e0c7e3

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

js/jquery.storelocator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* storeLocator v1.4.5 - jQuery Google Maps Store Locator Plugin
2+
* storeLocator v1.4.6 - jQuery Google Maps Store Locator Plugin
33
* (c) Copyright 2013, Bjorn Holine (http://www.bjornblog.com)
44
* Released under the MIT license
55
* Distance calculation function by Chris Pietschmann: http://pietschsoft.com/post/2008/02/01/Calculate-Distance-Between-Geocodes-in-C-and-JavaScript.aspx
@@ -802,13 +802,13 @@ $.fn.storeLocator = function(options) {
802802
//Opens the infowindow when list item is clicked
803803
if(location === "left"){
804804
infowindow.setContent(formattedAddress);
805-
infowindow.open(marker.get(settings.mapDiv), marker);
805+
infowindow.open(marker.get('map'), marker);
806806
}
807807
//Opens the infowindow when the marker is clicked
808808
else{
809809
google.maps.event.addListener(marker, 'click', function() {
810810
infowindow.setContent(formattedAddress);
811-
infowindow.open(marker.get(settings.mapDiv), marker);
811+
infowindow.open(marker.get('map'), marker);
812812
//Focus on the list
813813
$('#' + settings.listDiv + ' li').removeClass('list-focus');
814814
markerId = marker.get("id");

js/jquery.storelocator.min.js

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

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ Handlebars is now required: It’s very important to note that the plugin now re
1010

1111
## Changelog
1212

13+
### Version 1.4.6
14+
15+
Fixed a bug where infowindows wouldn't open if the map div was changed.
16+
1317
### Version 1.4.5
1418

1519
A minor update that includes the latest versions of jQuery and Handlebars, two new location variables and some clean-up.

storelocator.jquery.json

Lines changed: 1 addition & 1 deletion
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": ["locator","store", "location", "locations", "maps", "map", "stores", "find"],
6-
"version": "1.4.5",
6+
"version": "1.4.6",
77
"author": {
88
"name": "Bjorn Holine",
99
"url": "http://www.bjornblog.com/"

0 commit comments

Comments
 (0)