+ // mise en évidence de la conversation
+ $(".entete", element).hover(
+ function()
+ {
+ thisConversation.decolorerEntetes()
+ thisConversation.afficherConversation(idMess)
+ },
+ // quand on sort de l'entête du message la mise en évidence est enlevée
+ function()
+ {
+ thisConversation.enleverMiseEnEvidence()
+ thisConversation.decolorerEntetes()
+ thisConversation.colorerEntetes()
+ }
+ )
+
+ if (thisConversation.client.viewTimes)
+ $(".dateComplete", element).show()
+ else
+ $(".dateComplete", element).hide()
+
+ $("a[@rel*=lightbox]", element).lightBox()
+
+ // les outils de bannissement (uniquement pour les ekMaster)
+ if (thisConversation.client.ekMaster)
+ $(".pseudo", element).hover(
+ function(e)
+ {
+ var userId = parseInt($(".id", this).text())
+ var pseudo = $(this)
+ var h = pseudo.outerHeight()
+ var offset = pseudo.offset()
+ // TODO : calculer automatiquement la largeur plutôt que d'inscrire des valeurs en brut'
+ thisConversation.util.outilsBan.css("top", offset.top - 2).css("left", offset.left - 2).height(h < 16 ? 16 : h).width(pseudo.outerWidth() + 16 * 3 + 12 + 64).prependTo(this).show()
+ $("img", thisConversation.util.outilsBan).unbind("click")
+ $("#slap", thisConversation.util.outilsBan).click(
+ function()
+ {
+ thisConversation.client.slap(userId, $("#outilsBan input").val())
+ $("#outilsBan input").val("")
+ $("#outilsBan").hide()
+ }
+ )
+ $("#kick", thisConversation.util.outilsBan).click(
+ function()
+ {
+ thisConversation.client.kick(userId, $("#outilsBan input").val())
+ $("#outilsBan input").val("")
+ $("#outilsBan").hide()
+ }
+ )
+ $("#ban", thisConversation.util.outilsBan).click(
+ function()
+ {
+ thisConversation.client.ban(userId, $("#outilsBan input").val())
+ $("#outilsBan input").val("")
+ $("#outilsBan").hide()
+ }
+ )
+ },
+ function()
+ {
+ $("#outilsBan", this).hide()
+ }
+ )
+}
+