Formateur.prototype.traitementComplet = function(M, pseudo)
{
- return this.traiterSmiles(this.traiterURL(this.remplacerBalisesHTML(M), pseudo))
+ return this.traiterLiensConv(this.traiterSmiles(this.traiterURL(this.remplacerBalisesHTML(M), pseudo)))
+}
+
+/**
+ * Transforme les liens en entités clickables.
+ * Un lien vers une conversation permet d'ouvrire celle ci, elle se marque comme ceci dans un message :
+ * "{5F}" ou 5F est la racine de la conversation.
+ * Ce lien sera transformer en <span class="lienConv">{5F}</span> pouvant être clické pour créer la conv 5F.
+ */
+Formateur.prototype.traiterLiensConv = function(M)
+{
+ return M.replace(
+ /\{\w+\}/g,
+ function(lien)
+ {
+ return "<span class=\"lienConv\">" + lien + "</span>"
+ }
+ )
}
\r
/**\r
Client.prototype.connexion = function(action)
{
- //action.action.dump()
+ action.action.dump("Connexion client")
thisClient = this
jQuery.ajax(
{
success:
function(data)
{
- //thisClient.util.serializer.serializeToString(data).dump("Charger client")
+ thisClient.util.serializer.serializeToString(data).dump("Charger client")
thisClient.chargerDonnees(data)
}
}
async = true
thisClient = this
- //this.util.xmlVersAction(this.getXMLProfile()).action.dump("Flush client")
+ this.util.xmlVersAction(this.getXMLProfile()).action.dump("Flush client")
jQuery.ajax(
{
async: async,