projects
/
euphorik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MOD replace 'formateur' by 'formater'
[euphorik.git]
/
js
/
pageMinichat
/
pageMinichat.js
diff --git
a/js/pageMinichat/pageMinichat.js
b/js/pageMinichat/pageMinichat.js
index
032ce41
..
c1276c7
100755
(executable)
--- a/
js/pageMinichat/pageMinichat.js
+++ b/
js/pageMinichat/pageMinichat.js
@@
-18,14
+18,14
@@
/*jslint laxbreak:true */
/*jslint laxbreak:true */
-euphorik.PageMinichat = function(client, formate
u
r, util, communication) {
+euphorik.PageMinichat = function(client, formater, util, communication) {
this.nom = "minichat";
this.client = client;
this.nom = "minichat";
this.client = client;
- this.formate
ur = formateu
r;
+ this.formate
r = formate
r;
this.util = util;
this.communication = communication;
this.util = util;
this.communication = communication;
- this.commandes = new euphorik.Commandes(this.client, this, this.util, this.formate
u
r);
+ 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
// 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'
$("#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.formate
u
r, this.util, this.fragment);
+ this.conversations = new euphorik.Conversations(this.client, this.formater, this.util, this.fragment);
this.chargerConversationsFragment();
this.chargerConversationsFragment();
@@
-120,12
+120,12
@@
euphorik.PageMinichat.prototype.charger = function() {
// <smiles>
$("body").append('<div id="smiles"></div>');
// affichage des smiles
// <smiles>
$("body").append('<div id="smiles"></div>');
// affichage des smiles
- $("#smiles").append(this.formate
u
r.getSmilesHTML()).children().each(
+ $("#smiles").append(this.formater.getSmilesHTML()).children().each(
function(i) {
var opacityBase = $(this).css("opacity");
$(this).click(
function() {
function(i) {
var opacityBase = $(this).css("opacity");
$(this).click(
function() {
- thisPage.util.replaceSelection($("form#posterMessage input.message")[0], thisPage.formate
u
r.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); },
}
).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é)
var pseudo = $("form#posterMessage input.pseudo").val();
// (un pseudo vide est autorisé)
- pseudo = this.formate
u
r.filtrerInputPseudo(pseudo);
+ pseudo = this.formater.filtrerInputPseudo(pseudo);
if (pseudo === euphorik.conf.pseudoDefaut) {
this.util.messageDialogue("Le pseudo ne peut pas être " + euphorik.conf.pseudoDefaut);
if (pseudo === euphorik.conf.pseudoDefaut) {
this.util.messageDialogue("Le pseudo ne peut pas être " + euphorik.conf.pseudoDefaut);