2016-04-15 10:10:38 +00:00
|
|
|
/* [1] Gestion du sociogramme
|
|
|
|
=========================================================*/
|
2016-04-18 12:56:49 +00:00
|
|
|
var sociogram;
|
2016-04-15 16:40:15 +00:00
|
|
|
|
2016-04-18 12:56:49 +00:00
|
|
|
/* (1) On essaie de charger la classe du sociogramme */
|
|
|
|
var alreadyLoaded = include('/js/includes/sociogram.js', null, true);
|
2016-04-15 16:40:15 +00:00
|
|
|
|
2016-04-18 12:56:49 +00:00
|
|
|
/* (2) Si il est pas déja chargé, on initialise le sociogramme */
|
2016-04-15 16:40:15 +00:00
|
|
|
|
2016-04-18 12:56:49 +00:00
|
|
|
include('/js/includes/sociogram.js', function(){
|
|
|
|
// On ajoute les méthodes si c'est la première fois qu'on charge
|
|
|
|
if( !alreadyLoaded ) sociogramClass.prototype.overloadGraph();
|
2016-04-15 16:40:15 +00:00
|
|
|
|
2016-04-18 12:56:49 +00:00
|
|
|
// On charge le graphique
|
|
|
|
sociogram = new sociogramClass(document.getElementById('sociogram'));
|
|
|
|
sociogram.load();
|
2016-04-15 10:10:38 +00:00
|
|
|
|
2016-04-15 13:07:25 +00:00
|
|
|
});
|