33,7 → 33,8 |
supprimerMiniature(); |
}); |
|
$("#fichier").bind('change', function () { |
$("#fichier").bind('change', function (e) { |
arreter(e); |
$("#form-upload").ajaxSubmit(options); |
return false; |
}); |
54,9 → 55,7 |
var imgNom = $("image-nom", reponse).text(); |
$("#miniature").empty(); |
$("#miniature").append('<img id="miniature-img" class="miniature" alt="'+imgNom+'" src="'+miniatureUrl+'"/>'); |
$("#effacer-miniature").show(); |
console.log(imgNom); |
console.log(miniatureUrl); |
$("#effacer-miniature").show(); |
} |
|
function supprimerMiniature() { |
77,7 → 76,7 |
if (VILLE == 'Montpellier') { |
latLng = new google.maps.LatLng(43.61077, 3.87672); |
} else { |
console.log('Ville:'+VILLE); |
//console.log('Ville:'+VILLE); |
} |
|
// Tentative de geocalisation |
116,7 → 115,6 |
|
// Geocodeur |
geocoder = new google.maps.Geocoder(); |
console.log(GOOGLE_MAP_MARQUEUR_URL); |
|
// Marqueur google draggable |
marker = new google.maps.Marker({ |
425,6 → 423,7 |
$(".msg").remove(); |
$(".msg-erreur").remove(); |
$(".msg-debug").remove(); |
$("#chargement").show(); |
}, |
success : function(data, textStatus, jqXHR) { |
$("#dialogue-obs-transaction").append('<p class="msg">Vos observations ont bien été transmises.</p>'); |
480,7 → 479,7 |
if (DEBUG) { |
$("#dialogue-obs-transaction").append('<pre class="msg-debug">Débogage : '+debugMsg+'</pre>'); |
} |
|
$("#chargement").hide(); |
$("#dialogue-obs-transaction").dialog(); |
$("#liste-obs").removeData(); |
$('.obs').remove(); |