Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3970 → Rev 3971

/trunk/widget/modules/photo/squelettes/js/WidgetPhotoPopup.js
604,7 → 604,8
map.markers = [];
 
L.tileLayer(
'https://osm.tela-botanica.org/tuiles/osmfr/{z}/{x}/{y}.png',
// 'https://osm.tela-botanica.org/tuiles/osmfr/{z}/{x}/{y}.png',
'https://a.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png',
{
attribution: 'Data © <a href="http://osm.org/copyright">OpenStreetMap</a>',
maxZoom: 18
781,7 → 782,21
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
location.reload();
 
//SI l'envoie est réussi on met à jour l'affiichage
// var xhttp2 = new XMLHttpRequest();
// xhttp2.onreadystatechange = function() {
// if (this.readyState == 4 && this.status == 200) {
// lthis.votes = lthis.getVotes(lthis.protocole)
//
// console.log('vote envoyé')
// }
// };
//
// xhttp2.open("GET", url+"?action=update_pf_vote&imageVote=" + lthis.idImage, false);
// xhttp2.setRequestHeader("Content-Type", "application/json");
// xhttp2.send(jsonData);
// location.reload();
}
};