X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2FpageMinichat%2FpageMinichat.js;h=0b9c5b362ee2b83a41dd0230db2408e89b819f6f;hb=d6dcd0fd8af56bd4791aa4e621c2e5058033c37a;hp=2f53eb0c14d7988cae975cd319982f5d84fc3cc0;hpb=4f15129b495827b1894f8a234cc8f32262233fb1;p=euphorik.git diff --git a/js/pageMinichat/pageMinichat.js b/js/pageMinichat/pageMinichat.js index 2f53eb0..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 = '' + '