/*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;
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();
'</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>';
});
///////////////////////////////////////////////////////////////////////////////////////////////////
-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;
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>';
});
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;
};