Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Regard whitespace Rev 1265 → Rev 1266

/trunk/presentations/scripts/fiche-synthese.js
487,21 → 487,27
});
 
function ajouterEvenement(elementHtml, nomEvenement, functionCallBack) {
if(elementHtml.attachEvent) // Internet Explorer
if(!!elementHtml && elementHtml != null) {
if(elementHtml.attachEvent) {// Internet Explorer
elementHtml.attachEvent("on" + nomEvenement, function() {functionCallBack.call(elementHtml);});
else if(elementHtml.addEventListener) // Firefox & autres
} 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
$('#repartition_observations').ready(function() {
ajouterEvenement(document.getElementById("repartition_observations"), "load", function() {
$(".conteneur_repartition_observations").removeClass("chargement_repartition");
});
});
 
});
 
$(document).one('ongletSyntheseCharge', function() {
lierModulesEtOnglets();