Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1626 Rev 1714
Line 170... Line 170...
170
	);
170
	);
171
}
171
}
Line 172... Line 172...
172
 
172
 
173
function validerExport() {
173
function validerExport() {
174
	var urlCalcul = getUrlExport()+'/calcul';
174
	var urlCalcul = getUrlExport()+'/calcul';
175
	var valeurs = {};
175
	var valeurs =
176
	$.each($('#form-export-obs').serializeArray(), function(i, field) {
176
		$.grep($('#form-export-obs').serializeArray(), function(field, i) {
177
		if(field.value != null && $.trim(field.value) != '') {
177
			if($.trim(field.value) == '') return false;
178
			valeurs[field.name] = field.value;
178
			return true;
179
		}
179
		});
180
	});
180
 
181
	$.get(urlCalcul, valeurs, function(data) {
181
	$.get(urlCalcul, valeurs, function(data) {
182
		if(data.length == 1) {
182
		if(data.length == 1) {
183
			window.location.href = data[0];
183
			window.location.href = data[0];
184
		} else {
184
		} else {
Line 207... Line 207...
207
	ajouterAutocompletionCommunes();
207
	ajouterAutocompletionCommunes();
208
	$("#date_debut").datepicker($.datepicker.regional['fr']);
208
	$("#date_debut").datepicker($.datepicker.regional['fr']);
209
	$("#date_fin").datepicker($.datepicker.regional['fr']);
209
	$("#date_fin").datepicker($.datepicker.regional['fr']);
210
	$(".lien_telechargement").live("click", function(event) {ouvrirDansUneNouvelleFenetre(event, $(this))});
210
	$(".lien_telechargement").live("click", function(event) {ouvrirDansUneNouvelleFenetre(event, $(this))});
211
	configurerValidationFormulaire();
211
	configurerValidationFormulaire();
212
});
-
 
213
212
});
-
 
213