Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1246 Rev 1257
Line 484... Line 484...
484
		mettreAJourUrl(permalienNumNom+"-"+onglet, onglet);
484
		mettreAJourUrl(permalienNumNom+"-"+onglet, onglet);
485
	}
485
	}
486
	gererInteractionsPermaliens();
486
	gererInteractionsPermaliens();
487
});
487
});
Line -... Line 488...
-
 
488
 
-
 
489
function ajouterEvenement(elementHtml, nomEvenement, functionCallBack) {       
-
 
490
   if(elementHtml.attachEvent) // Internet Explorer
-
 
491
	   elementHtml.attachEvent("on" + nomEvenement, function() {functionCallBack.call(elementHtml);}); 
-
 
492
   else if(elementHtml.addEventListener) // Firefox & autres
-
 
493
	   elementHtml.addEventListener(nomEvenement, functionCallBack, false);
-
 
494
} 
-
 
495
 
-
 
496
$(document).one('ongletRepartitionCharge', function() {
-
 
497
	$(".conteneur_repartition_observations").addClass("chargement_repartition");
-
 
498
	// utilisation d'une fonction native car jQuery refuse d'ajouter un évènement load
-
 
499
	// sur autre chose qu'une image
-
 
500
	ajouterEvenement(document.getElementById("repartition_observations"), "load", function() {
-
 
501
		$(".conteneur_repartition_observations").removeClass("chargement_repartition");
-
 
502
	});
-
 
503
});
488
 
504
 
489
$(document).one('ongletSyntheseCharge', function() {
505
$(document).one('ongletSyntheseCharge', function() {
Line 490... Line 506...
490
	lierModulesEtOnglets();
506
	lierModulesEtOnglets();
491
	
507