X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageMinichat.js;h=da534ed4026150e8557af91dafb4a79a6158a282;hp=cedcf922c2b6c989a51976a32b35e505379b246e;hb=55b0291a691e56465277811aac749e930509fea2;hpb=d95485a099c027a30575bcc61595c8b35161ebba diff --git a/js/pageMinichat.js b/js/pageMinichat.js index cedcf92..da534ed 100755 --- a/js/pageMinichat.js +++ b/js/pageMinichat.js @@ -38,7 +38,7 @@ PageMinichat.prototype.contenu = function() var formulaireXHTML = '
\

\ \ -\ +\ 0\ \ \ @@ -88,8 +88,8 @@ PageMinichat.prototype.charger = function() ) this.util.infoBulle("Slap", $("#slap", this.util.outilsBan)) - this.util.infoBulle("Kick (" + conf.tempsKick + "min)", $("#kick", this.util.outilsBan)) - this.util.infoBulle("Ban (" + conf.tempsBan / 24 / 60 + " jours)", $("#ban", this.util.outilsBan)) + this.util.infoBulle("Kick (" + euphorik.conf.tempsKick + "min)", $("#kick", this.util.outilsBan)) + this.util.infoBulle("Ban (" + euphorik.conf.tempsBan / 24 / 60 + " jours)", $("#ban", this.util.outilsBan)) this.util.infoBulle("La raison", $("input", this.util.outilsBan)) } @@ -106,7 +106,7 @@ PageMinichat.prototype.charger = function() thisPage.conversations.enleverMessagesRepond() } ), - positionBulleType.droite + euphorik.Util.positionBulleType.droite ) // @@ -173,7 +173,7 @@ PageMinichat.prototype.charger = function() function() { var input = $("input.pseudo")[0] - if (input.value == conf.pseudoDefaut) + if (input.value == euphorik.conf.pseudoDefaut) input.value = "" } ) @@ -193,7 +193,7 @@ PageMinichat.prototype.getJSONMessage = function(pseudo, message) repondA.push(parseInt(id)) // FIXME : une propriété ne peut pas être de type int ? return { - "header" : { "action" : "put_message", "version" : conf.versionProtocole }, + "header" : { "action" : "put_message", "version" : euphorik.conf.versionProtocole }, "cookie" : this.client.cookie, "nick" : pseudo, "content" : message, @@ -208,9 +208,9 @@ PageMinichat.prototype.envoyerMessage = function(pseudo, message) // (un pseudo vide est autorisé) pseudo = this.formateur.filtrerInputPseudo(pseudo) - if (pseudo == conf.nickDefaut) + if (pseudo == euphorik.conf.nickDefaut) { - this.util.messageDialogue("Le pseudo ne peut pas être " + conf.nickDefaut) + this.util.messageDialogue("Le pseudo ne peut pas être " + euphorik.conf.nickDefaut) return } @@ -466,7 +466,7 @@ function Conversation(conversations, num) this.messages = [] this.messagesParId = {} - this.nbMessageMax = conf.nbMessageAffiche // Le nombre de message affiché par page + this.nbMessageMax = euphorik.conf.nbMessageAffiche // Le nombre de message affiché par page var messagesXHTML = '

' var messageRacineXHTML = '
' @@ -488,7 +488,7 @@ function Conversation(conversations, num) $("#conversations tr").append(XHTML) - this.util.infoBulle("Aller à la première page", $("#" + this.getId() + " .numPage"), positionBulleType.haut) + this.util.infoBulle("Aller à la première page", $("#" + this.getId() + " .numPage"), euphorik.Util.positionBulleType.haut) if (num != 0) { this.util.infoBulle("Créer un lien vers la conversation", $("#" + this.getId() + " .lien")) @@ -1019,7 +1019,7 @@ Conversations.prototype.afficherMessagesRepondConversations = function() Conversations.prototype.getJSONrafraichirMessages = function() { var mess = { - "message_count" : conf.nbMessageAffiche, + "message_count" : euphorik.conf.nbMessageAffiche, "main_page" : this.client.pagePrincipale, "conversations" : this.getJSONConversations(), "troll_id" : this.trollIdCourant