Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3958 Rev 3971
Line 602... Line 602...
602
			} ).setView( [lat, lng], 12 );
602
			} ).setView( [lat, lng], 12 );
Line 603... Line 603...
603
 
603
 
Line 604... Line 604...
604
		map.markers = [];
604
		map.markers = [];
605
 
605
 
-
 
606
		L.tileLayer(
606
		L.tileLayer(
607
			// 'https://osm.tela-botanica.org/tuiles/osmfr/{z}/{x}/{y}.png',
607
			'https://osm.tela-botanica.org/tuiles/osmfr/{z}/{x}/{y}.png',
608
			'https://a.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png',
608
			{
609
			{
609
				attribution: 'Data © <a href="http://osm.org/copyright">OpenStreetMap</a>',
610
				attribution: 'Data © <a href="http://osm.org/copyright">OpenStreetMap</a>',
610
				maxZoom: 18
611
				maxZoom: 18
Line 779... Line 780...
779
	const lthis = this;
780
	const lthis = this;
Line 780... Line 781...
780
 
781
 
781
	var xhttp = new XMLHttpRequest();
782
	var xhttp = new XMLHttpRequest();
782
	xhttp.onreadystatechange = function() {
783
	xhttp.onreadystatechange = function() {
-
 
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)
-
 
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");
783
		if (this.readyState == 4 && this.status == 200) {
798
			// xhttp2.send(jsonData);
784
			location.reload();
799
			// location.reload();
785
		}
800
		}
Line 786... Line 801...
786
	};
801
	};