Skip to content

Commit be27cc1

Browse files
committed
Added parseInt to directionsRequest call to ensure correct type is passed
1 parent 4e1416e commit be27cc1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-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 - v3.0.0 - 2018-03-04
1+
/*! jQuery Google Maps Store Locator - v3.0.0 - 2018-03-05
22
* http://www.bjornblog.com/web/jquery-store-locator-plugin
33
* Copyright (c) 2018 Bjorn Holine; Licensed MIT */
44

@@ -2481,7 +2481,7 @@
24812481
$(document).on('click.'+pluginName, '.' + _this.settings.locationList + ' li .loc-directions a', function (e) {
24822482
e.preventDefault();
24832483
var locID = $(this).closest('li').attr('data-markerid');
2484-
_this.directionsRequest(origin, locID, map);
2484+
_this.directionsRequest(origin, parseInt(locID), map);
24852485

24862486
// Close directions
24872487
$(document).on('click.'+pluginName, '.' + _this.settings.locationList + ' .bh-sl-close-icon', function () {

0 commit comments

Comments
 (0)