Permalink
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...
2 parents 64c58f0 + 05f7526 commit b5ac988bb784be2da67577c34f1441d3b1005781 @rilwis committed Mar 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/map.js
View
@@ -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.