Subversion Repositories eFlore/Applications.cel

Rev

Rev 3380 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3380 Rev 3384
Line 599... Line 599...
599
				' map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"'+
599
				' map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"'+
600
			'>'+
600
			'>'+
601
			'</tb-geolocation-element>'
601
			'</tb-geolocation-element>'
602
		);
602
		);
603
		// Empêcher que le module carto ne bind ses events partout
603
		// Empêcher que le module carto ne bind ses events partout
604
		$( '#tb-geolocation-arbres' ).on( 'submit blur click focus mousedown mouseleave mouseup change', '*', function( event ) {
604
		$( '#zone-arbres' ).on( 'submit blur click focus mousedown mouseleave mouseup change', '#tb-geolocation-arbres *', function( event ) {
605
			event.preventDefault();
605
			event.preventDefault();
606
			return false;
606
			return false;
607
		});
607
		});
608
		$( '#tb-geolocation-arbres' ).on( 'location', this.locationArbresHandler.bind(this) );
608
		$( '#tb-geolocation-arbres' ).on( 'location', this.locationArbresHandler.bind(this) );
609
	}
609
	}
Line 1293... Line 1293...
1293
		$( '#geoloc-datas-arbres,#retour' ).removeClass( 'hidden' );
1293
		$( '#geoloc-datas-arbres,#retour' ).removeClass( 'hidden' );
1294
	} else {
1294
	} else {
1295
		// quand on change ou qu'on revient à la normale :
1295
		// quand on change ou qu'on revient à la normale :
1296
		$( '#geoloc-arbres,#bouton-fichier,#miniature-arbres-info' ).removeClass( 'hidden' );
1296
		$( '#geoloc-arbres,#bouton-fichier,#miniature-arbres-info' ).removeClass( 'hidden' );
1297
		$( '#geoloc-datas-arbres,#retour' ).addClass( 'hidden' );
1297
		$( '#geoloc-datas-arbres,#retour' ).addClass( 'hidden' );
-
 
1298
		// reset carto
-
 
1299
		$( '#tb-geolocation-arbres' ).remove();
-
 
1300
		$( '#geoloc-arbres' ).append(
-
 
1301
			'<tb-geolocation-element'+
-
 
1302
				' id="tb-geolocation-arbres"'+
-
 
1303
				' layer="google hybrid"'+
-
 
1304
				' zoom_init="20"'+
-
 
1305
				' lat_init="' + $( '#latitude' ).val() + '"'+
-
 
1306
				' lng_init="' + $( '#longitude' ).val() + '"'+
-
 
1307
				' marker="true"'+
-
 
1308
				' polyline="false"'+
-
 
1309
				' polygon="false"'+
-
 
1310
				' show_lat_lng_elevation_inputs="true"'+
-
 
1311
				' osm_class_filter=""'+
-
 
1312
				' elevation_provider="mapquest"'+
-
 
1313
				' map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"'+
-
 
1314
			'>'+
-
 
1315
			'</tb-geolocation-element>'
-
 
1316
		);
-
 
1317
		$( '#tb-geolocation-arbres' ).on( 'location', this.locationArbresHandler.bind( this ) );
-
 
1318
 
1298
		$( '#certitude option' ).each( function() {
1319
		$( '#certitude option' ).each( function() {
1299
			if ( $( this ).hasClass( 'choisir' ) ) {
1320
			if ( $( this ).hasClass( 'choisir' ) ) {
1300
				$( this ).prop( 'selected', true );
1321
				$( this ).prop( 'selected', true );
1301
			} else {
1322
			} else {
1302
				$( this ).prop( 'selected', false );
1323
				$( this ).prop( 'selected', false );