Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #247 from jberdah/master

Fixing the map geolocation when having a list of text fields as address_field
  • Loading branch information...
commit b5ac988bb784be2da67577c34f1441d3b1005781 2 parents 64c58f0 + 05f7526
@rilwis authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/map.js
View
2  js/map.js
@@ -1,4 +1,3 @@
-
var marker, map, geocoder;
jQuery( document ).ready( function ()
@@ -65,6 +64,7 @@ jQuery( document ).ready( function ()
for ( loop = 0; loop < fieldList.length; loop++ )
{
address += jQuery( '#' + fieldList[loop] ).val();
+ if(loop+1 < fieldList.length) { address += ', '; }
}
address = address.replace( /\n/g, ',' );

0 comments on commit b5ac988

Please sign in to comment.
Something went wrong with that request. Please try again.