X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageMinichat%2Fconversations.js;h=0ad7878a2d991ca97907d6e2604a7ef8558d1d5f;hp=26fbb66ebd299e0263b4997cd76082a58d6398b6;hb=a57cb5dd4f773111f734c726f61f06434c39b94e;hpb=7203835bce6f94b6afcc7403694145c829a4f833 diff --git a/js/pageMinichat/conversations.js b/js/pageMinichat/conversations.js index 26fbb66..0ad7878 100644 --- a/js/pageMinichat/conversations.js +++ b/js/pageMinichat/conversations.js @@ -260,38 +260,19 @@ euphorik.Conversations.prototype.ajouterMessage = function(element, numConversat if (!this.conversations[numConversation]) { nouvelleConversation = true; - this.nouvelleConversation( - numConversation, - function(num) { // fermeture de la conversation - thisConversations.supprimerConversation(num); - }, - function(num) { // insertion du lien vers la conversation - thisPage.util.replaceSelection( - $("form#posterMessage input.message")[0], - "{" + thisConversations.client.conversations[num-1].root.toString(36) + "}" - ); - } - ); + this.nouvelleConversation(numConversation); } this.conversations[numConversation].ajouterMessage(message); return nouvelleConversation; }; -euphorik.Conversations.prototype.nouvelleConversation = function(num, funFermer, funLien) +euphorik.Conversations.prototype.nouvelleConversation = function(num) { var thisMessages = this; this.conversations[num] = new euphorik.Conversation(this, num); - if (funFermer) { - this.conversations[num].eventFermer(funFermer); - } - - if (funLien) { - this.conversations[num].eventLien(funLien); - } - this.conversations[num].setFunPage( function(num) { // page suivante thisMessages.client.pageSuivante(num - 1);