X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Feuphorik.js;h=214c0f89d4b5ccf885c7e1cd7a635e75b7549e4c;hp=4a9261ac9ec20bb392653f1db27bacf5fa42c1a7;hb=eb8708a7450d6c5147613fab28678b206aeb7c7e;hpb=972919ab7f5651cd721eb6eec75f7150fdeaf347 diff --git a/js/euphorik.js b/js/euphorik.js index 4a9261a..214c0f8 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -26,8 +26,8 @@ $(document).ready( function() { var fragment = new Fragment(); var formateur = new euphorik.Formateur(); - var util = new euphorik.Util(formateur); - var communication = new Communication(); + var util = new euphorik.Util(formateur); + var communication = new euphorik.Communication(function(data) { util.messageDialogue(data.error_message); }); var client = new euphorik.Client(util, communication); var pages = new euphorik.Pages(fragment); @@ -57,11 +57,10 @@ $(document).ready( $("#menu .register").click(function(){ pages.afficherPage("register"); }); $("#menu .about").click(function(){ pages.afficherPage("about"); }); - // TODO : simplifier et pouvoir créer des liens par exemple : Conditions d'utilisation $("#footer .conditions").click(function(){ pages.afficherPage("conditions_utilisation"); }); - pages.ajouterPage(new euphorik.PageMinichat(client, formateur, util), true); + pages.ajouterPage(new euphorik.PageMinichat(client, formateur, util, communication), true); pages.ajouterPage(new euphorik.PageAdmin(client, formateur, util)); pages.ajouterPage(new euphorik.PageProfile(client, formateur, util)); pages.ajouterPage(new euphorik.PageRegister(client, formateur, util)); @@ -70,4 +69,4 @@ $(document).ready( pages.afficherPage(); } -); \ No newline at end of file +);