2016-04-19 15:08:59 +00:00
|
|
|
/* [0] Chemins des fichiers de gestion des graphiques
|
|
|
|
=========================================================*/
|
|
|
|
var chartManagers = {
|
2016-04-22 08:27:58 +00:00
|
|
|
sociogram: { link: '/js/includes/charts-sociogram-min.js', loaded: false }
|
2016-04-19 15:08:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
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 */
|
2016-04-22 08:27:58 +00:00
|
|
|
chartManagers.sociogram.loaded = include(chartManagers.sociogram.link, 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-25 14:18:50 +00:00
|
|
|
include(chartManagers.sociogram.link, function(){
|
2016-04-18 12:56:49 +00:00
|
|
|
// On ajoute les méthodes si c'est la première fois qu'on charge
|
2016-04-22 08:27:58 +00:00
|
|
|
if( !chartManagers.sociogram.loaded ) sociogramClass.prototype.overloadGraph();
|
2016-04-15 16:40:15 +00:00
|
|
|
|
2016-04-18 12:56:49 +00:00
|
|
|
// On charge le graphique
|
2016-04-22 08:27:58 +00:00
|
|
|
sociogram = new sociogramClass( $('#sociogram') );
|
2016-04-18 12:56:49 +00:00
|
|
|
sociogram.load();
|
2016-04-15 10:10:38 +00:00
|
|
|
|
2016-04-15 13:07:25 +00:00
|
|
|
});
|