this.ekMaster = false
// les conversations, une conversation est un objet possédant les attributs suivants :
- // - racine (entier)
+ // - root (entier)
// - page (entier)
this.conversations = new Array()
}
for (var i = 0; i < this.conversations.length; i++)
if (this.conversations[i].root == racine)
return false
-
- this.conversations.push({root : racine, page : 1})
+ this.conversations.push({root : racine, page : 1})
if (this.autoflush) this.flush(true)
return true
"nick_format" : this.nickFormat,
"view_times" : this.viewTimes,
"view_tooltips" : this.viewTooltips,
- "main_page" : this.pagePrincipale < 1 ? 1 : this.pagePrincipale,
"conversations" : this.getJSONConversations()
}
}
this.viewTooltips = data["view_tooltips"]
// la page de la conversation principale
- this.pagePrincipale = data["main_page"] == undefined ? 1 : data["main_page"]
+ this.pagePrincipale = 1
// les conversations
this.conversations = data["conversations"]
{
// extraction du numéro de la css courante
var numCssCourante = this.css.match(/^.*?\/(\d)\/.*$/)
- if (numCssCourante[1] != undefined)
+ if (numCssCourante != null && numCssCourante[1] != undefined)
{
$("#menuCss option").removeAttr("selected")
$("#menuCss option[value=" + numCssCourante[1]+ "]").attr("selected", "selected")
type: "POST",
url: "request",
dataType: "json",
- // Obsolète (voir TODO)
+ // TODO : doit disparaitre
timeout: 180000, // timeout de 3min. Gros HACK pas beau. FIXME problème décrit ici : http://groups.google.com/group/jquery-en/browse_thread/thread/8724e64af3333a76
data: this.util.jsonVersAction(dataToSend),
success: