MOD maj TODO
[euphorik.git] / js / euphorik.js
index 3b17bf5..3503c7e 100755 (executable)
@@ -40,7 +40,8 @@ var conf = {
       "kirby" : [/\[-kirby\]/g],
       "slurp" : [/\[-slurp\]/g],
       "agreed" : [/\[-agreed\]/g],
-      "dodo" : [/\[-dodo\]/g]\r
+      "dodo" : [/\[-dodo\]/g],
+      "bn" : [/\[-bn\]/g]\r
    }\r
 }\r
 
@@ -425,6 +426,7 @@ Client.prototype.resetDonneesPersonnelles = function()
    this.nickFormat = "nick"
    
    this.pagePrincipale = 1
+   this.ek_master = false
    
    // les conversations, une conversation est un objet possédant les attributs suivants :
    // - racine (entier)
@@ -705,6 +707,7 @@ Client.prototype.chargerDonnees = function(data)
       // les conversations
       thisClient.conversations = data["conversations"]
       
+      thisClient.ek_master = data["ek_master"]
    }
    this.dernierMessageErreur = data["error_message"]
 }
@@ -799,12 +802,7 @@ jQuery(document).ready(
       initialiserListeStyles(client)
 
       // TODO : pourquoi jQuery(document).unload ne fonctionne pas ?
-      jQuery(window).unload(
-         function()
-         {
-            client.flush(false)
-         }
-      )
+      jQuery(window).unload(function(){client.flush(false)})
       
       jQuery("#menu .minichat").click(function(){ pages.afficherPage("minichat") })
       jQuery("#menu .profile").click(function(){ pages.afficherPage("profile") })\r