-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated to support Django 2.0 #103
base: master
Are you sure you want to change the base?
Conversation
Thanks @Romamo , it worked for me on Django 2.0.3 👍 |
Thanks @Romamo , it worked for me too on Django 2.0.7 👍 |
Thanks, @Romamo !!! It's working for me now with Django==2.1.1 For those who want to use Romamo's fix as a dependency, add this to your
|
@@ -33,7 +33,7 @@ if (jQuery != undefined) { | |||
$mapContainer = $('<div class="geoposition-map" />'), | |||
$addressRow = $('<div class="geoposition-address" />'), | |||
$searchRow = $('<div class="geoposition-search" />'), | |||
$searchInput = $('<input>', {'type': 'search', 'placeholder': 'Start typing an address …'}), | |||
$searchInput = $('<input>', {'type': 'text', 'placeholder': 'Start typing an address …'}), | |||
$latitudeField = $container.find('input.geoposition:eq(0)'), | |||
$longitudeField = $container.find('input.geoposition:eq(1)'), | |||
latitude = parseFloat($latitudeField.val()) || null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the French people who want to use this library, the value of the $latitudeField
will have a coma so I needed to replace by a dot like so latitude = parseFloat($latitudeField.val().replace(',', '.'))
. And do the same for the longitude.
Otherwise, the value was truncated to an integer.
When will this be merged? |
No description provided.