(this.messages[i].systeme ? " systeme" : "") +
(this.messages[i].ekMaster ? " ekMaster" : "") +
"\">" +
- "<div class=\"extraire\"></div><span class=\"entete\">" +
+ "<div class=\"outilsMess\"><div class=\"extraire\"></div><div class=\"extraireCompletement\"></div></div><span class=\"entete\">" +
"<span class=\"dateComplete\">[<span class=\"date\">" + message.date + "</span>]</span>" +
"<span class=\"pseudo\"><span class=\"id\" style=\"display: none\">" + message.auteurId + "</span class=\"ident\">" + identifiant + "</span></span><span class=\"delimitationEntete\"></span>" +
XHTMLrepondA +
}
)
- thisConversation.util.infoBulle("Extraction de la conversation", $(".extraire", this))
+ thisConversation.util.infoBulle("Extraction de la conversation à partir de ce message", $(".extraire", this))
+ thisConversation.util.infoBulle("Extraction de la conversation complète", $(".extraireCompletement", this))
// l'id du message
var idMess36 = $(this).attr("id").substr(4)
this.util = util
this.conversations = new Array() // les conversations, la première représente la conversation principale
+
this.nouvelleConversation(0)
this.trollIdCourant = 0
Messages.prototype.getJSONConversations = function()
{
- var clientConv = this.client.getJSONConversations()
- for (var i = 1; i < this.conversations.length; i++)
+ var clientConv = []
+
+ for (var i = 0; i < this.client.conversations.length; i++)
{
- clientConv[i-1]["last_message_id"] = this.conversations[i].idDernierMessageAffiche
+ clientConv.push(
+ {
+ root : this.client.conversations[i].root,
+ page : this.client.conversations[i].page,
+ last_message_id : this.conversations[i + 1] == undefined ? 0 : this.conversations[i + 1].idDernierMessageAffiche
+ }
+ )
}
return clientConv
}
{
var thisMessages = this
- this.conversations[num] = new Conversation(num, this.util, this.formateur, this.client)
+ this.conversations[num] = new Conversation(num, this.util, this.formateur, this.client)
+
if (funFermer != undefined)
this.conversations[num].eventFermer(funFermer)
if (funLien != undefined)