Subversion Repositories eFlore/Applications.cel

Rev

Rev 1064 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1064 Rev 1069
Line 151... Line 151...
151
			utilisateur.courriel = $("#courriel").val();
151
			utilisateur.courriel = $("#courriel").val();
152
			observations['utilisateur'] = utilisateur;
152
			observations['utilisateur'] = utilisateur;
Line 153... Line 153...
153
			
153
			
154
			var erreurMsg = "";
154
			var erreurMsg = "";
155
			$.ajax({
155
			$.ajax({
156
				url : URL_SERVICE_CEL,
156
				url : SERVICE_SAISIE_URL,
157
				type : "POST",
157
				type : "POST",
158
				data : observations,
158
				data : observations,
159
				dataType : "json",
159
				dataType : "json",
160
				beforeSend : function() {
160
				beforeSend : function() {
Line 338... Line 338...
338
	}
338
	}
339
}
339
}
Line 340... Line 340...
340
 
340
 
341
function trouverCommune(pos) {
341
function trouverCommune(pos) {
342
	$(function() {
342
	$(function() {
343
		var urlNomCommuneFormatee = URL_SERVICE_NOM_COMMUNE.replace('{lat}', pos.lat()).replace('{lon}', pos.lng());
343
		var urlNomCommuneFormatee = SERVICE_NOM_COMMUNE_URL.replace('{lat}', pos.lat()).replace('{lon}', pos.lng());
344
		$.ajax({
344
		$.ajax({
345
			url : urlNomCommuneFormatee,
345
			url : urlNomCommuneFormatee,
346
			type : "GET",
346
			type : "GET",
347
			dataType : "json",
347
			dataType : "json",