486,6 → 486,22 |
gererInteractionsPermaliens(); |
}); |
|
function ajouterEvenement(elementHtml, nomEvenement, functionCallBack) { |
if(elementHtml.attachEvent) // Internet Explorer |
elementHtml.attachEvent("on" + nomEvenement, function() {functionCallBack.call(elementHtml);}); |
else if(elementHtml.addEventListener) // Firefox & autres |
elementHtml.addEventListener(nomEvenement, functionCallBack, false); |
} |
|
$(document).one('ongletRepartitionCharge', function() { |
$(".conteneur_repartition_observations").addClass("chargement_repartition"); |
// utilisation d'une fonction native car jQuery refuse d'ajouter un évènement load |
// sur autre chose qu'une image |
ajouterEvenement(document.getElementById("repartition_observations"), "load", function() { |
$(".conteneur_repartition_observations").removeClass("chargement_repartition"); |
}); |
}); |
|
$(document).one('ongletSyntheseCharge', function() { |
lierModulesEtOnglets(); |
|