Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3846 → Rev 3847

/trunk/widget/modules/saisie/squelettes/js/tb-geoloc/js/Geoloc.js
280,10 → 280,17
};
 
Geoloc.prototype.handleMarkerEvents = function() {
// move marker on click
$(this.map).off('click').on('click', evt => this.handleNewLocation(evt.latlng).bind(this));
// move marker on drag
$(this.map.marker).off('dragend').on('dragend', () => this.handleNewLocation(this.map.marker.getLatLng()).bind(this));
if(this.map) {
const lthis = this;
// move marker on click
$(this.map).off('click').on('click', function(evt) {
lthis.handleNewLocation(evt.latlng);
});
// move marker on drag
$(this.map.marker).off('dragend').on('dragend', function() {
lthis.handleNewLocation(lthis.map.marker.getLatLng());
});
}
};
 
Geoloc.prototype.handlePolylineEvents = function(requiresNewEditDrawControl = true) {
/trunk/widget/modules/saisie/squelettes/js/WidgetsSaisiesCommun.js
979,6 → 979,7
coordonnees = '',
commune = '',
lieuObs = '',
inseeCommune = '',
inseeCommuneText = '',
referentiel = '',
nn = '',
1022,7 → 1023,6
geometry = datasObs.sujet['geometry-arbres'];
latitude = datasObs.sujet['latitude-arbres'];
longitude = datasObs.sujet['longitude-arbres'];
numArbre = datasObs.sujet['num-arbre'];
// s'assurer que la date est au bon format
date = this.fournirDate( datasObs.releve.date );
commune = datasObs.releve['commune-nom'] || '';