FIX bug empechant de se logger
[euphorik.git] / js / euphorik.js
index c37ee4c..99a461f 100755 (executable)
@@ -459,10 +459,10 @@ Client.prototype.ajouterConversation = function(racine)
 {
    // 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
 }
 
@@ -514,7 +514,7 @@ Client.prototype.getJSONConversations = function()
 {
    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
 }
 
@@ -569,7 +569,7 @@ Client.prototype.setStatut = function(statut)
    if (typeof(statut) == "string")\r
    {
       statut =
-         statut == "registered" ?
+         statut == "auth_registered" ?
             statutType.auth_registered :
          (statut == "auth_not_registered" ? statutType.auth_not_registered : statutType.deconnected)\r
    }   \r