X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2FpageMinichat%2FpageMinichat.js;h=0b9c5b362ee2b83a41dd0230db2408e89b819f6f;hb=d6dcd0fd8af56bd4791aa4e621c2e5058033c37a;hp=792f64a7b85b7a1182c6afbea61704dfa5c782fa;hpb=217c4d7a0d5f9fee3a8ef0a05ab8506c7f39d5e5;p=euphorik.git diff --git a/js/pageMinichat/pageMinichat.js b/js/pageMinichat/pageMinichat.js index 792f64a..0b9c5b3 100755 --- a/js/pageMinichat/pageMinichat.js +++ b/js/pageMinichat/pageMinichat.js @@ -18,29 +18,27 @@ /*jslint laxbreak:true */ -euphorik.PageMinichat = function(client, formateur, util) { +euphorik.PageMinichat = function(client, formater, util, communication) { this.nom = "minichat"; this.client = client; - this.formateur = formateur; + this.formater = formater; this.util = util; - this.commandes = new euphorik.Commandes(this.client); + this.communication = communication; + this.commandes = new euphorik.Commandes(this.client, this, this.util, this.formater); // permet d'éviter d'envoyer plusieurs messages simultanément en pressant // rapidement sur "enter" par exemple this.envoieMessageEnCours = false; - - this.regexMessageTagMatch = /\{.*?\}>/g; - this.regexMessageTagReplace = /^(.*?\{.*?\}>)*/; }; euphorik.PageMinichat.prototype.contenu = function() { - // le fait que tout soit collé est fait exprès, permet d'éviter d'avoir des espaces supplémentaires entre les spans' + // le fait que tout soit collé est fait exprès, permet d'éviter d'avoir des espaces supplémentaires entre les spans var formulaireXHTML = '' + '