X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Fchat%2Fmessage.js;h=e7439c99974a0c48ba29de4882a8cfbf57e84229;hp=b3e5f122b241842f73e14baf5ba42f427e64114c;hb=4a6c575807a90370c0069b688026b10102e1ce10;hpb=6926aecb1cdd777ef8c52f63291341a540670a2c diff --git a/js/chat/message.js b/js/chat/message.js index b3e5f12..e7439c9 100644 --- a/js/chat/message.js +++ b/js/chat/message.js @@ -25,9 +25,9 @@ euphorik.Reponse = function(id, nick, login) { /** * Représente un message. */ -euphorik.Message = function(client, formater, element) { +euphorik.Message = function(client, formatter, element) { this.client = client; - this.formater = formater; + this.formatter = formatter; this.id = element.id; this.auteurId = element.user_id; @@ -118,9 +118,9 @@ euphorik.Message.prototype.XHTML = function(messagePair, pre) { // construit l'identifiant de la personne var identifiant = - this.client.nickFormat === "nick" || this.login === "" ? this.formater.completeProcessing(this.nick) : - (this.client.nickFormat === "login" ? this.formater.completeProcessing(this.login) : - this.formater.completeProcessing(this.nick) + "(" + this.formater.completeProcessing(this.login) +")" ); + this.client.nickFormat === "nick" || this.login === "" ? this.formatter.completeProcessing(this.nick) : + (this.client.nickFormat === "login" ? this.formatter.completeProcessing(this.login) : + this.formatter.completeProcessing(this.nick) + "(" + this.formatter.completeProcessing(this.login) +")" ); var XHTMLrepondA = ""; var debut = true; @@ -128,7 +128,7 @@ euphorik.Message.prototype.XHTML = function(messagePair, pre) { if (!debut) { XHTMLrepondA += ", "; } - XHTMLrepondA += thisMessage.formater.completeProcessing(rep.nick); + XHTMLrepondA += thisMessage.formatter.completeProcessing(rep.nick); debut = false; }); if (XHTMLrepondA) { @@ -148,6 +148,6 @@ euphorik.Message.prototype.XHTML = function(messagePair, pre) { "" + "" + XHTMLrepondA + - "" + this.formater.completeProcessing(this.contenu, this.nick) + "" + + "" + this.formatter.completeProcessing(this.contenu, this.nick) + "" + ""; };