MOD replace 'formateur' by 'formater'
[euphorik.git] / js / pageMinichat / pageMinichat.js
index 032ce41..c1276c7 100755 (executable)
  
 /*jslint laxbreak:true */
 
-euphorik.PageMinichat = function(client, formateur, util, communication) {
+euphorik.PageMinichat = function(client, formater, util, communication) {
    this.nom = "minichat";
    
    this.client = client;
-   this.formateur = formateur;
+   this.formater = formater;
    this.util = util;
    this.communication = communication;
-   this.commandes = new euphorik.Commandes(this.client, this, this.util, this.formateur);
+   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
@@ -66,7 +66,7 @@ euphorik.PageMinichat.prototype.charger = function() {
    $("#posterMessage input.pseudo").val(this.client.pseudo);
    
    // cet appel ne doit pas être fait avant l'appel à 'charger'
-   this.conversations = new euphorik.Conversations(this.client, this.formateur, this.util, this.fragment);   
+   this.conversations = new euphorik.Conversations(this.client, this.formater, this.util, this.fragment);   
    
    this.chargerConversationsFragment();
    
@@ -120,12 +120,12 @@ euphorik.PageMinichat.prototype.charger = function() {
    // <smiles>
    $("body").append('<div id="smiles"></div>');
    // affichage des smiles
-   $("#smiles").append(this.formateur.getSmilesHTML()).children().each(
+   $("#smiles").append(this.formater.getSmilesHTML()).children().each(
       function(i) {
          var opacityBase = $(this).css("opacity");
          $(this).click(
             function() {
-               thisPage.util.replaceSelection($("form#posterMessage input.message")[0], thisPage.formateur.smiles[$(this).attr("class")][0].source.replace(/\\/g, ""));
+               thisPage.util.replaceSelection($("form#posterMessage input.message")[0], thisPage.formater.smiles[$(this).attr("class")][0].source.replace(/\\/g, ""));
             }
          ).hover(
             function() { $(this).animate({opacity: 1}, 200); },
@@ -229,7 +229,7 @@ euphorik.PageMinichat.prototype.envoyerMessage = function(message) {
    var pseudo = $("form#posterMessage input.pseudo").val();
 
    // (un pseudo vide est autorisé)
-   pseudo = this.formateur.filtrerInputPseudo(pseudo);
+   pseudo = this.formater.filtrerInputPseudo(pseudo);
    
    if (pseudo === euphorik.conf.pseudoDefaut) {
       this.util.messageDialogue("Le pseudo ne peut pas être " + euphorik.conf.pseudoDefaut);