thisFormateur = this
var traitementUrl = function(url)
{
- return "[" + thisFormateur.getShort(url)[0] + (urlCourante == url ? ": image courante" : "") + "]"
+ return "[" + thisFormateur.getShort(url)[0] + (urlCourante == url ? "*" : "") + "]"
}
\r
return this.remplacerBalisesHTML(M).replace(this.regexUrl, traitementUrl)
// données personnels\r
this.resetDonneesPersonnelles()
- this.setStatut(statutType.deconnected)
-
- // le dernier message d'erreur recut du serveur (par exemple une connexion foireuse : "login impossible")
- this.dernierMessageErreur = ""\r
+ this.setStatut(statutType.deconnected)\r
}
\r
Client.prototype.resetDonneesPersonnelles = function()\r
this.email = ""\r
this.css = $("link#cssPrincipale").attr("href")
this.nickFormat = "nick"
+ this.cookie = undefined
this.pagePrincipale = 1
this.ekMaster = false
(statut == "auth_not_registered" ? statutType.auth_not_registered : statutType.deconnected)\r
} \r
\r
- if (statut == this.statut) return \r
+ if (statut == this.statut) return\r
\r
this.statut = statut \r
this.majMenu()
function(data)
{
;;; dumpObj(data)
- thisClient.chargerDonnees(data)
+ if (data["reply"] == "error")
+ thisClient.util.messageDialogue(data["error_message"])
+ else
+ thisClient.chargerDonnees(data)
}
}
)
Client.prototype.deconnexion = function()\r
{
this.flush(true)
- this.delCookie()\r
- this.setStatut(statutType.deconnected) // deconnexion\r
+ this.delCookie()
this.resetDonneesPersonnelles()\r
+ this.setStatut(statutType.deconnected) // deconnexion\r
}
Client.prototype.chargerDonnees = function(data)
// les conversations
this.conversations = data["conversations"]
}
- this.dernierMessageErreur = data["error_message"]
}
/**
if (!this.authentifie())
return false
- thisClient = this
+ var thisClient = this
var ok = true
;;; dumpObj(this.getJSONProfile())
;;; dumpObj(data)
if (data["reply"] == "error")
{
- thisClient.dernierMessageErreur = data["error_message"]
+ thisClient.util.messageDialogue(data["error_message"])
ok = false
}
}