X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;ds=inline;f=js%2FpageMinichat.js;h=4068222d560f9895ba05ffe03cbf3aef1b525b26;hb=dc70eed10d6eb26660d02fe8b18eebb2836ef9de;hp=2de1531976b7a6dc29cfbe0bd167196e6005a75e;hpb=c01d54fd6a515a6f2860e3b18ff574afa5caa83b;p=euphorik.git
diff --git a/js/pageMinichat.js b/js/pageMinichat.js
index 2de1531..4068222 100755
--- a/js/pageMinichat.js
+++ b/js/pageMinichat.js
@@ -15,1176 +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, formatter, util, communication) {
+ this.name = "minichat";
+
+ this.client = client;
+ this.formatter = formatter;
+ this.util = util;
+ this.communication = communication;
+ this.commandes = new euphorik.Commandes(this.client, this, this.util, this.formatter);
+
// 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 = '