X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2Feuphorik.js;h=c9291a200e23ff737da17fc4c92ad78ec086468e;hb=28cbabecbfc2e05861779a19e5a75bddbc0ad416;hp=6692be9e52f7d231a2ec3d1bdae03e87b536fa26;hpb=531c70729709cd97024eb1c2ff3ed836db9f550e;p=euphorik.git diff --git a/js/euphorik.js b/js/euphorik.js index 6692be9..c9291a2 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -13,7 +13,7 @@ * Normalement 'const' à la place de 'var' mais non supporté par IE7. */ var conf = { - nbMessageAffiche : 10, // (par page) + nbMessageAffiche : 40, // (par page) pseudoDefaut : "", tempsAffichageMessageDialogue : 4000, // en ms smiles : { @@ -277,7 +277,7 @@ Formateur.prototype.getSmilesHTML = function() var XHTML = "" for (var sNom in this.smiles) { - XHTML += "" + XHTML += "\""" } return XHTML } @@ -311,7 +311,7 @@ Formateur.prototype.traiterLiensConv = function(M) /** * FIXME : Cette méthode est attrocement lourde ! A optimiser. - * moyenne su échantillon : 234ms + * moyenne sur échantillon : 234ms */ Formateur.prototype.traiterSmiles = function(M) { @@ -319,7 +319,7 @@ Formateur.prototype.traiterSmiles = function(M) { ss = this.smiles[sNom] for (var i = 0; i < ss.length; i++) - M = M.replace(ss[i], "") + M = M.replace(ss[i], "\""") } return M } @@ -904,7 +904,7 @@ PageEvent.prototype.waitEvent = function(funSend, funReceive) error: function(XMLHttpRequest, textStatus, errorThrown) { - setTimeout(function(){ thisPageEvent.rafraichirMessages(funSend, funReceive) }, 1000); + setTimeout(function(){ thisPageEvent.waitEvent(funSend, funReceive) }, 1000); } }) @@ -939,7 +939,8 @@ $(document).ready( initialiserListeStyles(client) - // TODO : pourquoi $(document).unload ne fonctionne pas ? + // FIXME : ne fonctionne pas sous opera + // voir : http://dev.jquery.com/ticket/2892#preview $(window).unload(function(){client.flush()}) $("#menu .minichat").click(function(){ pages.afficherPage("minichat") })