X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;ds=inline;f=js%2FpageMinichat.js;h=13f337581a7312be1356ce7a787fdcf3cd799a0d;hb=81393a74d648e4830dc8c7c562fa203f50a105f6;hp=244467a5c287ecfa0bb0e3e4c6b6b3dc44fca336;hpb=68e2e2bddfdb752e4a0cf0fc681388d3a90b80f5;p=euphorik.git
diff --git a/js/pageMinichat.js b/js/pageMinichat.js
index 244467a..13f3375 100755
--- a/js/pageMinichat.js
+++ b/js/pageMinichat.js
@@ -15,1221 +15,278 @@
//
// 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"
-
- this.client = client
- this.formateur = formateur
- this.util = util
-
+
+/*jslint laxbreak:true */
+
+euphorik.PageMinichat = function(client, formater, util, communication) {
+ this.name = "minichat";
+
+ this.client = client;
+ this.formater = formater;
+ this.util = util;
+ 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 = /^(.*?\{.*?\}>)*/
-}
+ this.envoieMessageEnCours = false;
+};
+
+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
+ var formulaireXHTML = '' +
+ '
';
+
+ var conversationXHTML = '