{
// vérification s'il elle n'existe pas déjà
for (var i = 0; i < this.conversations.length; i++)
- if (this.conversations[i].racine == racine)
+ if (this.conversations[i].root == racine)
return false
- this.conversations.push({racine : racine, page : 1})
+ this.conversations.push({root : racine, page : 1})
return true
}
{
var conversations = new Array()
for (var i = 0; i < this.conversations.length; i++)
- conversations.push({ "racine" : this.conversations[i].racine, "page" : this.conversations[i].page})
+ conversations.push({ "root" : this.conversations[i].root, "page" : this.conversations[i].page})
return conversations
}
"cookie" : this.cookie,
"login" : this.login,
"password" : this.password,
+ "nick" : this.pseudo,
"email" : this.email,
"css" : this.css,
"main_page" : this.pagePrincipale < 1 ? 1 : this.pagePrincipale,
return false
thisClient = this
- //this.util.jsonVersAction(this.getJSONProfile()).action.dump("Flush client")
+ ;;; dumpObj(this.getJSONProfile())
jQuery.ajax(
{
async: async,
})
}
- jQuery(document).unload(
+ // TODO : pourquoi jQuery(document).unload ne fonctionne pas ?
+ jQuery(window).unload(
function()
{
- alert("ok")
- client.flush()
+ //alert("ok")
+ client.flush(false)
}
)