X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Fclient.js;h=11466a9b07f0215d25b5e1fd8fc4b0530ff91165;hp=73622a4bdfc6b292c19901d389afd7ab22bd986f;hb=6c0fcdfaefd072f8b0ee1d7d8f1ba2a2c1ede8ec;hpb=11fe8f6d268a9b1c0a773294cc7d70ffdb6afb30 diff --git a/js/client.js b/js/client.js index 73622a4..11466a9 100644 --- a/js/client.js +++ b/js/client.js @@ -126,7 +126,7 @@ euphorik.Client.prototype.goPremierePage = function(numConv) */ euphorik.Client.prototype.ajouterConversation = function(racine) { // vérification s'il elle n'existe pas déjà - var existe = false + var existe = false; this.conversations.each(function(i, conv) { if (conv.root === racine) { existe = true; @@ -189,7 +189,7 @@ euphorik.Client.prototype.getJSONEnregistrement = function(login, password) { mess.password = password; } - mess.profile_infos = this.getJSONProfileInfos(); + mess.profile = this.getJSONProfileInfos(); return mess; }; @@ -208,7 +208,7 @@ euphorik.Client.prototype.getJSONProfile = function() { "cookie" : this.cookie, "login" : this.login, "password" : this.password, - "profile_infos" : this.getJSONProfileInfos() + "profile" : this.getJSONProfileInfos() }; }; @@ -356,20 +356,20 @@ euphorik.Client.prototype.chargerDonnees = function(data) { this.id = data.id; this.login = data.login; - this.pseudo = data.nick; - this.email = data.email; - this.setCss(data.css); - this.chatOrder = data.chat_order; - this.nickFormat = data.nick_format; - this.viewTimes = data.view_times; - this.viewTooltips = data.view_tooltips; - this.ostentatiousMaster = data.ostentatious_master; + this.pseudo = data.profile.nick; + this.email = data.profile.email; + this.setCss(data.profile.css); + this.chatOrder = data.profile.chat_order; + this.nickFormat = data.profile.nick_format; + this.viewTimes = data.profile.view_times; + this.viewTooltips = data.profile.view_tooltips; + this.ostentatiousMaster = data.profile.ostentatious_master; // la page de la conversation principale this.pagePrincipale = 1; // les conversations - this.conversations = data.conversations; + this.conversations = data.profile.conversations; this.conversations.map(function(conv) { return { root : conv.root, page : 1, reduit : conv.minimized }; });