X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;ds=sidebyside;f=js%2FpageMinichat%2FpageMinichat.js;h=f11dea495237f63d9e6cec947499b99ad6f4a11f;hb=de1115d7db7e24743453410e1b3aeb2481a23bab;hp=333d22db9b8dbef08a490975054f33400f9ff7b7;hpb=5b696161ae91e007fc2e9bd455a14f4363772131;p=euphorik.git
diff --git a/js/pageMinichat/pageMinichat.js b/js/pageMinichat/pageMinichat.js
index 333d22d..f11dea4 100755
--- a/js/pageMinichat/pageMinichat.js
+++ b/js/pageMinichat/pageMinichat.js
@@ -16,269 +16,288 @@
// 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);
// 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 = '