X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Fchat%2Fconversation.js;h=aa7b3ca335404f4c65ed6109cb58e279a9165aec;hp=635f50a4dcf70bc859b2732766658eb42362102c;hb=eb44db02bab9c8b082201aa153dea8229432e894;hpb=e49a1c483f1751f129c0766d1061b3da44b60581 diff --git a/js/chat/conversation.js b/js/chat/conversation.js index 635f50a..aa7b3ca 100644 --- a/js/chat/conversation.js +++ b/js/chat/conversation.js @@ -385,14 +385,14 @@ euphorik.Conversation.prototype.attacherEventsSurMessage = function(element) { // les outils de bannissement (uniquement pour les ekMaster) if (thisConversation.client.ekMaster) { - $(".pseudo", element).hover( + $(".nick", element).hover( function(e) { var userId = parseInt($(".id", this).text(), 10); - var pseudo = $(this); - var h = pseudo.outerHeight(); - var offset = pseudo.offset(); + var nick = $(this); + var h = nick.outerHeight(); + var offset = nick.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(); + thisConversation.util.outilsBan.css("top", offset.top - 2).css("left", offset.left - 2).height(h < 16 ? 16 : h).width(nick.outerWidth() + 16 * 3 + 12 + 64).prependTo(this).show(); $("img", thisConversation.util.outilsBan).unbind("click"); $("#slap", thisConversation.util.outilsBan).click( function() {