X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2Fchat%2Fconversations.js;h=c7be4e06cdf4ca919696adeefe71937119a03ff4;hb=3d7756d15db9be15c3bd350dac05b52672b4e50f;hp=063220c578dbe5ce84c5174b2a25eb7ce8613c86;hpb=e49a1c483f1751f129c0766d1061b3da44b60581;p=euphorik.git diff --git a/js/chat/conversations.js b/js/chat/conversations.js index 063220c..c7be4e0 100644 --- a/js/chat/conversations.js +++ b/js/chat/conversations.js @@ -136,12 +136,12 @@ euphorik.Conversations.prototype.ajouterMessageRepond = function(mess) { /** * Construit tous les id potentiels d'un message, renvoie par exemple : - * "conv9b28mess1h, conv9b2amess1h, conv9b32mess1h" + * "#conv9b28mess1h, #conv9b2amess1h, #conv9b32mess1h" */ euphorik.Conversations.prototype.exprIdsPotentiels = function(mess) { var exprMess = ""; this.conversations.each(function(i, conv) { - exprMess += (mess !== "" ? ", " : "") + "#" + mess.getId(conv.getId()); + exprMess += (exprMess !== "" ? ", " : "") + "#" + mess.getId(conv.getId()); }); return exprMess; }; @@ -165,7 +165,7 @@ euphorik.Conversations.prototype.rafraichireNombreMessagesRepond = function() { /** * Affiche les messages auquel l'utilisateur souhaite répondre au sein des messages des conversations. - * Utilisé lorsqu'une conversation est extraite. + * Utilisé après qu'une conversation soit extraite. */ euphorik.Conversations.prototype.afficherMessagesRepondConversations = function() { var expr = ""; @@ -181,7 +181,7 @@ euphorik.Conversations.prototype.afficherMessagesRepondConversations = function( euphorik.Conversations.prototype.getJSONrafraichirMessages = function() { var mess = { "message_count" : euphorik.conf.nbMessageAffiche, - "main_page" : this.client.pagePrincipale, + "main_page" : this.client.mainConversationPage, "conversations" : this.getJSONConversations(), "troll_id" : this.trollIdCourant }; @@ -232,7 +232,7 @@ euphorik.Conversations.prototype.ajouterMessages = function(elements, numConvers // renseigne la conversation sur la page courante et si c'est la dernière this.conversations[numConversation].setPage( - numConversation === 0 ? this.client.pagePrincipale : this.client.conversations[numConversation - 1].page, + numConversation === 0 ? this.client.mainConversationPage : this.client.conversations[numConversation - 1].page, elements.last_page ); @@ -272,15 +272,15 @@ euphorik.Conversations.prototype.nouvelleConversation = function(num) { this.conversations[num].setFunPage( function(num) { // page suivante - thisConversations.client.pageSuivante(num - 1); + thisConversations.client.nextPage(num - 1); thisConversations.rafraichirMessages(true); }, function(num) { // page précédente - thisConversations.client.pagePrecedente(num - 1); + thisConversations.client.previousPage(num - 1); thisConversations.rafraichirMessages(true); }, function(num) { // retour à la page une - if (thisConversations.client.goPremierePage(num - 1)) { + if (thisConversations.client.goFirstPage(num - 1)) { thisConversations.rafraichirMessages(true); } }