Created
November 12, 2014 06:02
-
-
Save mockra/0e582f02f252877e3d71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function googlePlacesInitialize() { | |
var inputs; | |
inputs = $('input[data-google-places]'); | |
return $.each(inputs, function() { | |
return new google.maps.places.Autocomplete(this, { | |
types: ['geocode'], | |
componentRestrictions: { | |
country: 'us' | |
} | |
}); | |
}); | |
}; | |
$(function() { | |
return googlePlacesInitialize(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment