Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2408 Rev 2410
Line 147... Line 147...
147
	$('#id_utilisateur').val(infos.id);
147
	$('#id_utilisateur').val(infos.id);
148
	$('#prenom').val(infos.prenom);
148
	$('#prenom').val(infos.prenom);
149
	$('#nom').val(infos.nom);
149
	$('#nom').val(infos.nom);
150
	$('#courriel_confirmation').val(courriel);
150
	$('#courriel_confirmation').val(courriel);
151
	$('#prenom, #nom, #courriel_confirmation').attr('disabled', 'disabled');
151
	$('#prenom, #nom, #courriel_confirmation').attr('disabled', 'disabled');
152
	$('#structure').focus();
-
 
Line 153... Line 152...
153
 
152
 
154
	$('#dialogue-courriel-introuvable').hide();
153
	$('#dialogue-courriel-introuvable').hide();
Line 155... Line 154...
155
}
154
}
Line 779... Line 778...
779
		function (value, element) {
778
		function (value, element) {
780
			var ok = true;
779
			var ok = true;
781
			if ($('#formation').val() === 'alignement') {
780
			if ($('#formation').val() === 'alignement') {
782
				ok = (value != '' && /^[0-9]+$/.test(value) && value > 1);
781
				ok = (value != '' && /^[0-9]+$/.test(value) && value > 1);
783
			}
782
			}
784
			console.log(ok);
-
 
785
			return ok;
783
			return ok;
786
		},
784
		},
787
		"Veuillez indiquer le nombre d'arbres d'alignement.");
785
		"Veuillez indiquer le nombre d'arbres d'alignement.");
Line 788... Line 786...
788
 
786
 
Line 1118... Line 1116...
1118
 
1116
 
1119
var nbObsEnCours = 1;
1117
var nbObsEnCours = 1;
1120
var totalObsATransmettre = 0;
1118
var totalObsATransmettre = 0;
1121
function transmettreObs() {
1119
function transmettreObs() {
-
 
1120
	var observations = $('#liste-obs').data();
1122
	var observations = $('#liste-obs').data();
1121
	if (DEBUG) {
-
 
1122
		console.log(observations);
1123
	console.log(observations);
1123
	}
1124
	if (observations == undefined || jQuery.isEmptyObject(observations)) {
1124
	if (observations == undefined || jQuery.isEmptyObject(observations)) {
1125
		afficherPanneau('#dialogue-zero-obs');
1125
		afficherPanneau('#dialogue-zero-obs');
1126
	} else {
1126
	} else {
1127
		nbObsEnCours = 1;
1127
		nbObsEnCours = 1;