Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1231 Rev 1235
Line 556... Line 556...
556
				
556
				
557
				//Ajout des champs images
557
				//Ajout des champs images
558
				'image_nom' : $("#miniature-img").attr('alt'),
558
				'image_nom' : $("#miniature-img").attr('alt'),
559
				'image_b64' : getB64ImgOriginal()
559
				'image_b64' : getB64ImgOriginal()
-
 
560
			});
560
			});
561
			supprimerMiniature();
561
		}
562
		}
Line 562... Line 563...
562
	});
563
	});
Line 567... Line 568...
567
		var observations = $("#liste-obs").data();
568
		var observations = $("#liste-obs").data();
Line 568... Line 569...
568
		
569
		
569
		if (observations == undefined || jQuery.isEmptyObject(observations)) {
570
		if (observations == undefined || jQuery.isEmptyObject(observations)) {
570
			$("#dialogue-zero-obs").show();
571
			$("#dialogue-zero-obs").show();
571
		} else {
572
		} else {
-
 
573
			observations['projet'] = TAG_PROJET;
-
 
574
			observations['tag-obs'] = TAG_OBS;
Line 572... Line 575...
572
			observations['projet'] = PROJET_TAG;
575
			observations['tag-img'] = TAG_IMG;
573
			
576
			
574
			var utilisateur = new Object();
577
			var utilisateur = new Object();
575
			utilisateur.prenom = $("#prenom").val();
578
			utilisateur.prenom = $("#prenom").val();
Line 588... Line 591...
588
					$(".msg-erreur").remove();
591
					$(".msg-erreur").remove();
589
					$(".msg-debug").remove();
592
					$(".msg-debug").remove();
590
					$("#chargement").show();
593
					$("#chargement").show();
591
				},
594
				},
592
				success : function(data, textStatus, jqXHR) {
595
				success : function(data, textStatus, jqXHR) {
-
 
596
					$("#dialogue-obs-transaction .alert-txt").append(
593
					$("#dialogue-obs-transaction .alert-txt").append('<p class="msg">Vos observations ont bien été transmises.</p>');
597
						'<p class="msg">Vos observations ont bien été transmises au réseau. '+
-
 
598
						"Elles sont désormais consultables à travers les différents outils de visualisation "+
-
 
599
						'du réseau (<a href="http://www.tela-botanica.org/site:botanique">eFlore</a>, '+
-
 
600
						'<a href="http://www.tela-botanica.org/page:cel_galerie">galerie d\'images</a>, '+
-
 
601
						'<a href="http://www.tela-botanica.org/widget:cel:carto">cartographie (widget)</a>...).'+
-
 
602
						"Si vous souhaitez les modifier ou les supprimer, vous pouvez les retrouvez en vous "+
-
 
603
						'connectant à votre <a href="http://www.tela-botanica.org/appli:cel">Carnet en ligne.</p>');
594
					supprimerMiniature();
604
					supprimerMiniature();
595
				},
605
				},
596
				statusCode : {
606
				statusCode : {
597
					500 : function(jqXHR, textStatus, errorThrown) {
607
					500 : function(jqXHR, textStatus, errorThrown) {
598
						$("#chargement").hide();
608
						$("#chargement").hide();