X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;ds=sidebyside;f=js%2FpageMinichat%2FpageMinichat.js;h=b71efeaac7ebae27438714ca5bb7f1c391d26e22;hb=c8e862a96eedcf1b996035b6b0e8a0c36e9a0cde;hp=1213cab224324a0a0a817ac151cb3b13225741b9;hpb=904f2d76c25b7fd04b1f90dfa095c7bf0f8c7ce5;p=euphorik.git
diff --git a/js/pageMinichat/pageMinichat.js b/js/pageMinichat/pageMinichat.js
index 1213cab..b71efea 100755
--- a/js/pageMinichat/pageMinichat.js
+++ b/js/pageMinichat/pageMinichat.js
@@ -16,269 +16,282 @@
// You should have received a copy of the GNU General Public License
// along with Euphorik. If not, see .
-function PageMinichat(client, formateur, util)
-{
- this.nom = "minichat"
+/*jslint laxbreak:true */
+
+euphorik.PageMinichat = function(client, formateur, util, communication) {
+ this.nom = "minichat";
- this.client = client
- this.formateur = formateur
- this.util = util
+ this.client = client;
+ this.formateur = formateur;
+ this.util = util;
+ 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.envoieMessageEnCours = false;
- this.regexMessageTagMatch = /\{.*?\}>/g
- this.regexMessageTagReplace = /^(.*?\{.*?\}>)*/
-}
+ this.regexMessageTagMatch = /\{.*?\}>/g;
+ this.regexMessageTagReplace = /^(.*?\{.*?\}>)*/;
+};
-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'
- var formulaireXHTML = '
';
+
+ var trollXHTML = '