Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1380 → Rev 1381

/trunk/presentations/scripts/fiche-synthese.js
759,9 → 759,27
);
}
 
function gererTemplatesChargementALaDemande() {
$('.lien-ajax-tpl a').live('click', function(e) {
if($(this).attr('data-loading') != "true") {
$(this).attr('data-loading', "true");
e.preventDefault();
urlTpl = $(this).attr('href');
$(this).hide();
thisElementParent = $(this).parent();
thisElementParent.append("<div class='tab-chargement'>Chargement des informations...</div>");
$.get(urlTpl, function( data ) {
thisElementParent.replaceWith( data );
});
return false;
}
});
}
 
$(document).ajaxStop(function() {
gererChargementGraphiqueEcologie();
gererAffichageLegendeEcologie();
gererTemplatesChargementALaDemande();
if (document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#BasicStructure', '1.1') == false) {
$('.svg').each(function() {
alt = $(this).attr('alt');
771,3 → 789,4
});
}
});