X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=js%2Feuphorik.js;h=214c0f89d4b5ccf885c7e1cd7a635e75b7549e4c;hb=efae3fc07564a2a29b24f8c87b6d8f6658b873a0;hp=dfcefd4f7cd88380274ef199920357c9fb9057bb;hpb=6c0fcdfaefd072f8b0ee1d7d8f1ba2a2c1ede8ec;p=euphorik.git
diff --git a/js/euphorik.js b/js/euphorik.js
index dfcefd4..214c0f8 100755
--- a/js/euphorik.js
+++ b/js/euphorik.js
@@ -15,8 +15,8 @@
//
// You should have received a copy of the GNU General Public License
// along with Euphorik. If not, see .
-
-/*jslint laxbreak:true */
+
+/*jslint laxbreak:true */
// tout euphorik est contenu dans cet objet
var euphorik = {};
@@ -27,7 +27,8 @@ $(document).ready(
var fragment = new Fragment();
var formateur = new euphorik.Formateur();
var util = new euphorik.Util(formateur);
- var client = new euphorik.Client(util);
+ 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);
// connexion vers le serveur (utilise un cookie qui traine)
@@ -58,8 +59,8 @@ $(document).ready(
// 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));
@@ -68,4 +69,4 @@ $(document).ready(
pages.afficherPage();
}
-);
\ No newline at end of file
+);