Skip to content

Commit

Permalink
BUGFIX: storeLocator.js - pareseFloat distance
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish committed Oct 11, 2016
1 parent 072c970 commit 9973f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thirdparty/jquery-store-locator/js/jquery.storelocator.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ $.fn.storeLocator = function(options) {
'hours3': $(this).attr('hours3'),
'category': $(this).attr('category'),
'featured': $(this).attr('featured'),
'distance': $(this).attr('distance')
'distance': parseFloat($(this).attr('distance'))
};

if(locationData['web']) locationData['web'] = locationData['web'].replace("http://",""); // Remove scheme (todo: should NOT be done)
Expand Down

0 comments on commit 9973f3f

Please sign in to comment.