Browse Source

Fix lat/lon js update on form

Jocelyn Delande 9 years ago
parent
commit
075cfbe67a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      wifiwithme/static/form.js

+ 4 - 4
wifiwithme/static/form.js

@@ -2,8 +2,8 @@ $( document ).ready(function() {
 
     // Defaults
     defaults = {
-        lat: ($('#latitude').val()) ? $('#latitude').val() : 47.218371,
-        lng: ($('#longitude').val()) ? $('#longitude').val() : -1.553621,
+        lat: ($('#id_latitude').val()) ? $('#id_latitude').val() : 47.218371,
+        lng: ($('#id_longitude').val()) ? $('#id_longitude').val() : -1.553621,
         zoom: 13,
     }
 
@@ -35,8 +35,8 @@ $( document ).ready(function() {
 
     function mapUpdateCoords() {
         var m = marker.getLatLng();
-        $('#latitude').val(m.lat);
-        $('#longitude').val(m.lng);
+        $('#id_latitude').val(m.lat);
+        $('#id_longitude').val(m.lng);
     }
 
     // Display tiny circles on existing public points