X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2FpageMinichat%2FpageMinichat.js;h=032ce4151b986d43b0509ba35ef910d7fe01ad30;hb=7ea77e03a1191ed84719ec018635cbe4a1b44259;hp=d289a99353739abfb6a8e7b115f45d02e5497a10;hpb=4aa85a2e80963b73773e748fd4402fab2ad852ce;p=euphorik.git diff --git a/js/pageMinichat/pageMinichat.js b/js/pageMinichat/pageMinichat.js index d289a99..032ce41 100755 --- a/js/pageMinichat/pageMinichat.js +++ b/js/pageMinichat/pageMinichat.js @@ -18,20 +18,18 @@ /*jslint laxbreak:true */ -euphorik.PageMinichat = function(client, formateur, util) { +euphorik.PageMinichat = function(client, formateur, util, communication) { this.nom = "minichat"; this.client = client; this.formateur = formateur; this.util = util; - this.commandes = new euphorik.Commandes(this.client); + this.communication = communication; + this.commandes = new euphorik.Commandes(this.client, this, this.util, this.formateur); // 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() { @@ -40,7 +38,7 @@ euphorik.PageMinichat.prototype.contenu = function() { '