\r
/**\r
* Construit tous les id potentiels d'un message, renvoie par exemple :\r
- * "conv9b28mess1h, conv9b2amess1h, conv9b32mess1h"\r
+ * "#conv9b28mess1h, #conv9b2amess1h, #conv9b32mess1h"\r
*/\r
euphorik.Conversations.prototype.exprIdsPotentiels = function(mess) {\r
var exprMess = "";\r
this.conversations.each(function(i, conv) {\r
- exprMess += (mess !== "" ? ", " : "") + "#" + mess.getId(conv.getId());\r
+ exprMess += (exprMess !== "" ? ", " : "") + "#" + mess.getId(conv.getId());\r
});\r
return exprMess;\r
};\r
\r
/**\r
* Affiche les messages auquel l'utilisateur souhaite répondre au sein des messages des conversations.\r
- * Utilisé lorsqu'une conversation est extraite.\r
+ * Utilisé après qu'une conversation soit extraite.\r
*/\r
euphorik.Conversations.prototype.afficherMessagesRepondConversations = function() {\r
var expr = "";\r
euphorik.Conversations.prototype.getJSONrafraichirMessages = function() {\r
var mess = {\r
"message_count" : euphorik.conf.nbMessageAffiche,\r
- "main_page" : this.client.pagePrincipale,\r
+ "main_page" : this.client.mainConversationPage,\r
"conversations" : this.getJSONConversations(),\r
"troll_id" : this.trollIdCourant\r
};\r
\r
// renseigne la conversation sur la page courante et si c'est la dernière\r
this.conversations[numConversation].setPage(\r
- numConversation === 0 ? this.client.pagePrincipale : this.client.conversations[numConversation - 1].page,\r
+ numConversation === 0 ? this.client.mainConversationPage : this.client.conversations[numConversation - 1].page,\r
elements.last_page\r
);\r
\r
\r
this.conversations[num].setFunPage(\r
function(num) { // page suivante\r
- thisConversations.client.pageSuivante(num - 1);\r
+ thisConversations.client.nextPage(num - 1);\r
thisConversations.rafraichirMessages(true);\r
},\r
function(num) { // page précédente\r
- thisConversations.client.pagePrecedente(num - 1);\r
+ thisConversations.client.previousPage(num - 1);\r
thisConversations.rafraichirMessages(true);\r
},\r
function(num) { // retour à la page une\r
- if (thisConversations.client.goPremierePage(num - 1)) {\r
+ if (thisConversations.client.goFirstPage(num - 1)) {\r
thisConversations.rafraichirMessages(true);\r
}\r
}\r
"new_troll" :\r
function(data) {\r
thisConversations.trollIdCourant = data.troll_id;\r
- $("#trollCourant .troll").html(thisConversations.formater.traitementComplet(data.content)).unbind("click").click(\r
+ $("#trollCourant .troll").html(thisConversations.formater.completeProcessing(data.content)).unbind("click").click(\r
function() {\r
thisConversations.ouvrirConversation(data.message_id);\r
}\r