X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=js%2Feuphorik.js;h=a19d33e163e25d48e12dd8545acbbe8339772606;hb=696cf94315883382f4057fda2bff8b9deca70287;hp=29e85ad1270e654ac3f28de06a62c4838d86a6f5;hpb=221a44d7aeaf467ef9854fe21af93bc964e92ef1;p=euphorik.git
diff --git a/js/euphorik.js b/js/euphorik.js
index 29e85ad..a19d33e 100755
--- a/js/euphorik.js
+++ b/js/euphorik.js
@@ -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
}
@@ -756,9 +756,10 @@ Client.prototype.flush = function(async)
Client.prototype.majMenu = function()
{
// TODO : à virer : ne plus changer de style de display ... spa beau .. ou trouver une autre méthode
- var displayType = this.css == "css/3/euphorik.css" ? "block" : "inline" //this.client
+ // var displayType = this.css == "css/3/euphorik.css" ? "block" : "inline" //this.client
+ displayType = "block"
- $("#menu .admin").css("display", this.ekMaster ? "inline" : "none")
+ $("#menu .admin").css("display", this.ekMaster ? displayType : "none")
// met à jour le menu
if (this.statut == statutType.auth_registered)
@@ -904,7 +905,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);
}
})