X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;ds=sidebyside;f=js%2Feuphorik.js;h=2d64fe2333857cfffc0e26943296ad3a7ab92016;hb=13bf850da2316cde3ad2ff8d5c26fb32928bf7b4;hp=3b17bf58cc98df397313e3a649c35100a4d49f27;hpb=0864f5fa5ccd1ce99e88c08d25a2f8ea18525d56;p=euphorik.git diff --git a/js/euphorik.js b/js/euphorik.js index 3b17bf5..2d64fe2 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -40,7 +40,8 @@ var conf = { "kirby" : [/\[-kirby\]/g], "slurp" : [/\[-slurp\]/g], "agreed" : [/\[-agreed\]/g], - "dodo" : [/\[-dodo\]/g] + "dodo" : [/\[-dodo\]/g], + "bn" : [/\[-bn\]/g] } } @@ -304,7 +305,8 @@ Formateur.prototype.traiterLiensConv = function(M) } /** - * FIXME : Cette méthode est attrocement lourde ! A optimiser. + * FIXME : Cette méthode est attrocement lourde ! A optimiser. + * moyenne su échantillon : 234ms */ Formateur.prototype.traiterSmiles = function(M) { @@ -425,6 +427,7 @@ Client.prototype.resetDonneesPersonnelles = function() this.nickFormat = "nick" this.pagePrincipale = 1 + this.ekMaster = false // les conversations, une conversation est un objet possédant les attributs suivants : // - racine (entier) @@ -705,6 +708,7 @@ Client.prototype.chargerDonnees = function(data) // les conversations thisClient.conversations = data["conversations"] + thisClient.ekMaster = data["ek_master"] } this.dernierMessageErreur = data["error_message"] } @@ -799,12 +803,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") })