Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3972 Rev 3979
Line 261... Line 261...
261
	}
261
	}
Line 262... Line 262...
262
 
262
 
263
	$( '#bloc-infos-img' ).html(
263
	$( '#bloc-infos-img' ).html(
264
		this.afficherLien( this.urlLienEflore, this.obs['nom_sel'] )+
264
		this.afficherLien( this.urlLienEflore, this.obs['nom_sel'] )+
265
		' par '+
265
		' par '+
266
		'<a class="lien_contact" href="' + lienContact + '" target="_blank" title="Afficher le profil">' + this.auteur + '</a> '+
266
		'<a class="lien_contact" href="' + this.item['urlProfil'] + '" target="_blank" title="Afficher le profil">' + this.auteur + '</a> '+
267
		' le ' + this.date + ' - ' + this.obs['localisation']
267
		' le ' + this.date + ' - ' + this.obs['localisation']
268
	);
268
	);
Line 269... Line 269...
269
};
269
};
Line 781... Line 781...
781
 
781
 
782
	var xhttp = new XMLHttpRequest();
782
	var xhttp = new XMLHttpRequest();
783
	xhttp.onreadystatechange = function() {
783
	xhttp.onreadystatechange = function() {
Line 784... Line -...
784
		if (this.readyState == 4 && this.status == 200) {
-
 
785
 
-
 
786
			//SI l'envoie est réussi on met à jour l'affiichage
-
 
787
			// var xhttp2 = new XMLHttpRequest();
-
 
788
			// xhttp2.onreadystatechange = function() {
-
 
789
			// 	if (this.readyState == 4 && this.status == 200) {
-
 
790
			// 		lthis.votes = lthis.getVotes(lthis.protocole)
784
		if (this.readyState == 4 && this.status == 200) {
791
			//
-
 
792
			// 		console.log('vote envoyé')
-
 
793
			// 	}
-
 
794
			// };
-
 
795
			//
-
 
796
			// xhttp2.open("GET", url+"?action=update_pf_vote&imageVote=" + lthis.idImage, false);
-
 
797
			// xhttp2.setRequestHeader("Content-Type", "application/json");
-
 
798
			// xhttp2.send(jsonData);
785
 
799
			// location.reload();
786
			console.log('vote envoyé')
Line 800... Line 787...
800
		}
787
		}