X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2Feuphorik.js;h=45b3cbdbe96b767a230a6f17c1123427c3beac1b;hb=0b34258466c58a805a2cbfe7ef134385b26fed94;hp=56c78fddd7f3fc2824f6e683ea9e09272bbd54d7;hpb=7f8025543a7a5d614ec47d18026dc0feb3338fdb;p=euphorik.git diff --git a/js/euphorik.js b/js/euphorik.js index 56c78fd..45b3cbd 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -106,8 +106,7 @@ var messageType = {informatif: 0, question: 1, erreur: 2} */ Util.prototype.jsonVersAction = function(json) { - // FIXME : ne plus encapsuler json dans de l'xml (problème avec yaws) - return {action: "" + JSON.stringify(json) + "" } + return {action : JSON.stringify(json) } } Util.prototype.md5 = function(chaine) @@ -569,7 +568,7 @@ Client.prototype.setStatut = function(statut) if (typeof(statut) == "string") { statut = - statut == "registered" ? + statut == "auth_registered" ? statutType.auth_registered : (statut == "auth_not_registered" ? statutType.auth_not_registered : statutType.deconnected) }