MOD replace 'formateur' by 'formater'
[euphorik.git] / js / pageAdmin.js
index 9ed847e..9ce1620 100644 (file)
 /*jslint laxbreak:true */
 
 
-euphorik.PageAdmin = function(client, formateur, util, communication) {
+euphorik.PageAdmin = function(client, formater, util, communication) {
    this.nom = "admin";
    
    this.client = client;
-   this.formateur = formateur;
+   this.formater = formateur;
    this.util = util;
    this.communication = communication;
    
@@ -62,7 +62,7 @@ euphorik.PageAdmin.prototype.charger = function() {
    var thisPage = this;
    
    // la liste des trolls proposés par les ekMasters
-   this.trolls = new euphorik.Trolls(this.client, this.util, this.formateur, this.communication);
+   this.trolls = new euphorik.Trolls(this.client, this.util, this.formater, this.communication);
    
    this.waitEvent();
    
@@ -134,8 +134,8 @@ euphorik.PageAdmin.prototype.majIPs = function() {
                '</span>|';
             ip.users.each(function(j, user) {
                XHTML += (j > 0 ? ", " : "") +
-                  '<span class="pseudo">' + thisPageAdmin.formateur.traitementComplet(user.nick) + '</span>' +
-                  (user.login === "" ? "" : '<span class="login">(' + thisPageAdmin.formateur.traitementComplet(user.login) + ')</span>');
+                  '<span class="pseudo">' + thisPageAdmin.formater.traitementComplet(user.nick) + '</span>' +
+                  (user.login === "" ? "" : '<span class="login">(' + thisPageAdmin.formater.traitementComplet(user.login) + ')</span>');
             });
             XHTML += '<span class="deban">débannir</span></div>';
          });
@@ -213,10 +213,10 @@ euphorik.Troll = function(content, author) {
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-euphorik.Trolls = function(client, util, formateur, communication) {
+euphorik.Trolls = function(client, util, formater, communication) {
    this.client = client;
    this.util = util;
-   this.formateur = formateur;
+   this.formater = formater;
    this.communication = communication;
    this.dernierTroll = 0;
    
@@ -234,8 +234,8 @@ euphorik.Trolls.prototype.ajouterTrollEvent = function(data) {
       
       XHTML +=
          '<div id="troll' + trollId + '" class="troll">' +
-         '<span class="content">' + thisTrolls.formateur.traitementComplet(troll.content, troll.author) + '</span>' +
-         '<span class="author"> - ' + thisTrolls.formateur.traitementComplet(troll.author) + '</span>' +
+         '<span class="content">' + thisTrolls.formater.traitementComplet(troll.content, troll.author) + '</span>' +
+         '<span class="author"> - ' + thisTrolls.formater.traitementComplet(troll.author) + '</span>' +
          (trollData.author_id === thisTrolls.client.id ? '<span class="editTroll">éditer</span><span class="delTroll">Supprimer</span>' : '') +
          '</div>';
    });
@@ -305,7 +305,7 @@ euphorik.Trolls.prototype.ajouterTrollEvent = function(data) {
 
 euphorik.Trolls.prototype.modifierTrollEvent = function(data) {
    var thisTrolls = this;
-   $("#trolls #troll" + data.troll_id + " .content").html(thisTrolls.formateur.traitementComplet(data.content, thisTrolls.trolls[data.troll_id].author));
+   $("#trolls #troll" + data.troll_id + " .content").html(thisTrolls.formater.traitementComplet(data.content, thisTrolls.trolls[data.troll_id].author));
    $("#trolls #troll" + data.troll_id + " a[@rel*=lightbox]").lightBox();
    thisTrolls.trolls[data.troll_id].content = data.content;
 };