X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2Feuphorik.js;h=c880e8fa0b33c92ea9dfa429084a0025e8fa2647;hb=c39e55c505a27e30209fcfb6d837d6ec8a82b990;hp=dfd398dda83d7778cdd616e08b50e508f9da6df4;hpb=7ed3a03bffb4112ee174b05ef1d7b486d6ad6534;p=euphorik.git
diff --git a/js/euphorik.js b/js/euphorik.js
index dfd398d..c880e8f 100755
--- a/js/euphorik.js
+++ b/js/euphorik.js
@@ -299,7 +299,24 @@ Formateur.prototype.getSmilesHTML = function()
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 {5F} pouvant être clické pour créer la conv 5F.
+ */
+Formateur.prototype.traiterLiensConv = function(M)
+{
+ return M.replace(
+ /\{\w+\}/g,
+ function(lien)
+ {
+ return "" + lien + ""
+ }
+ )
}
/**
@@ -687,7 +704,7 @@ Client.prototype.enregistrement = function(login, password)
Client.prototype.connexion = function(action)
{
- //action.action.dump()
+ action.action.dump("Connexion client")
thisClient = this
jQuery.ajax(
{
@@ -699,7 +716,7 @@ Client.prototype.connexion = function(action)
success:
function(data)
{
- //thisClient.util.serializer.serializeToString(data).dump("Charger client")
+ thisClient.util.serializer.serializeToString(data).dump("Charger client")
thisClient.chargerDonnees(data)
}
}
@@ -762,7 +779,7 @@ Client.prototype.flush = function(async)
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,