Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1375 Rev 1381
Line 757... Line 757...
757
			// rien à faire sur le mouseout
757
			// rien à faire sur le mouseout
758
		}
758
		}
759
	);
759
	);
760
}
760
}
Line -... Line 761...
-
 
761
 
-
 
762
function gererTemplatesChargementALaDemande() {
-
 
763
	$('.lien-ajax-tpl a').live('click', function(e) {
-
 
764
		if($(this).attr('data-loading') != "true") {
-
 
765
			$(this).attr('data-loading', "true");
-
 
766
			e.preventDefault();
-
 
767
			urlTpl = $(this).attr('href');
-
 
768
			$(this).hide();
-
 
769
			thisElementParent = $(this).parent();
-
 
770
			thisElementParent.append("<div class='tab-chargement'>Chargement des informations...</div>");
-
 
771
			$.get(urlTpl, function( data ) {
-
 
772
				thisElementParent.replaceWith( data );
-
 
773
			});
-
 
774
			return false;
-
 
775
		}
-
 
776
	});
-
 
777
}
761
 
778
 
762
$(document).ajaxStop(function() {
779
$(document).ajaxStop(function() {
763
	gererChargementGraphiqueEcologie();
780
	gererChargementGraphiqueEcologie();
-
 
781
	gererAffichageLegendeEcologie();
764
	gererAffichageLegendeEcologie();
782
	gererTemplatesChargementALaDemande();
765
	if (document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#BasicStructure', '1.1') == false) {
783
	if (document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#BasicStructure', '1.1') == false) {
766
		$('.svg').each(function() {
784
		$('.svg').each(function() {
767
			alt = $(this).attr('alt');
785
			alt = $(this).attr('alt');
768
			img = document.createElement('img');
786
			img = document.createElement('img');
769
			img.src = alt;
787
			img.src = alt;
770
			$(this).replaceWith(img);
788
			$(this).replaceWith(img);
771
		});
789
		});
772
	}
790
	}
-
 
791
});