X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=js%2FpageMinichat.js;h=4068222d560f9895ba05ffe03cbf3aef1b525b26;hb=HEAD;hp=ec745f357f424e84b2a9617b68cf4a5a967bb1cd;hpb=994f68e1f8a7a43b55d6bd6214b2a0066671ba74;p=euphorik.git
diff --git a/js/pageMinichat.js b/js/pageMinichat.js
index ec745f3..4068222 100755
--- a/js/pageMinichat.js
+++ b/js/pageMinichat.js
@@ -15,1035 +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 = '