Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3382 → Rev 3383

/trunk/widget/modules/apa/squelettes/js/ReleveApa.js
608,7 → 608,7
'</tb-geolocation-element>'
);
// EmpĂȘcher que le module carto ne bind ses events partout
$( '#tb-geolocation-arbres' ).on( 'submit blur click focus mousedown mouseleave mouseup change', '*', function( event ) {
$( '#zone-arbres' ).on( 'submit blur click focus mousedown mouseleave mouseup change', '#tb-geolocation-arbres *', function( event ) {
event.preventDefault();
return false;
});
1330,6 → 1330,26
// quand on change ou qu'on revient Ă  la normale :
$( '#geoloc-arbres,#bouton-fichier,#miniature-arbres-info' ).removeClass( 'hidden' );
$( '#geoloc-datas-arbres,#retour' ).addClass( 'hidden' );
// reset carto
$( '#tb-geolocation-arbres' ).remove();
$( '#geoloc-arbres' ).append(
'<tb-geolocation-element'+
' id="tb-geolocation-arbres"'+
' layer="google hybrid"'+
' zoom_init="20"'+
' lat_init="' + $( '#latitude' ).val() + '"'+
' lng_init="' + $( '#longitude' ).val() + '"'+
' marker="true"'+
' polyline="false"'+
' polygon="false"'+
' show_lat_lng_elevation_inputs="true"'+
' osm_class_filter=""'+
' elevation_provider="mapquest"'+
' map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"'+
'>'+
'</tb-geolocation-element>'
);
$( '#tb-geolocation-arbres' ).on( 'location', this.locationArbresHandler.bind( this ) );
// retour aux valeurs par defaut
$( '#equipement-pied-arbre .other' ).text( 'Autre' ).val( 'other' );
$(