X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageMinichat.js;h=c56b2ffff3bf04f7a1ddcb6feabb64c71dea1255;hp=31c7e3194de832eeaae12380447121ccea522a39;hb=1fcc1243aec27c9d19eeceb4736a9ba7810984db;hpb=22ef1631270f6798262d85eb7c8f95aee65493fd diff --git a/js/pageMinichat.js b/js/pageMinichat.js index 31c7e31..c56b2ff 100755 --- a/js/pageMinichat.js +++ b/js/pageMinichat.js @@ -519,8 +519,6 @@ Conversation.prototype.majRacine = function() this.attacherEventsSurMessage(element) $("#" + this.getId() + " .titre .messageRacine").html(element) } - else // si le message fait déjà parti de la conversation on n'affiche pas la racine - $("#" + this.getId() + " .titre .messageRacine").empty() } Conversation.prototype.enleverMiseEnEvidence = function() @@ -642,6 +640,9 @@ Conversation.prototype.viderMessages = function() this.messagesParId = {} this.idDernierMessageAffiche = 0 $("#" + this.getId() + " .messages .message").remove() + + // enlève également la racine + $("#" + this.getId() + " .titre .messageRacine").empty() } Conversation.prototype.idMessageFromString = function(idString) @@ -763,20 +764,20 @@ Conversation.prototype.attacherEventsSurMessage = function(element) if (thisConversation.client.viewTimes) $(".dateComplete", element).show() else - $(".dateComplete", idMess).hide() + $(".dateComplete", element).hide() - $("a[@rel*=lightbox]", idMess).lightBox() + $("a[@rel*=lightbox]", element).lightBox() // les outils de bannissement (uniquement pour les ekMaster) if (thisConversation.client.ekMaster) - $(".pseudo", idMess).hover( + $(".pseudo", element).hover( function(e) { var userId = parseInt($(".id", this).text()) - var element = $(this) - var h = element.height() - var offset = element.offset() - thisConversation.util.outilsBan.css("top", offset.top - 2).css("left", offset.left - 2).height(h < 16 ? 16 : h).width(element.width() + 16 * 3 + 4 + 64).prependTo(this).show() + var pseudo = $(this) + var h = pseudo.height() + var offset = pseudo.offset() + thisConversation.util.outilsBan.css("top", offset.top - 2).css("left", offset.left - 2).height(h < 16 ? 16 : h).width(pseudo.width() + 16 * 3 + 4 + 64).prependTo(this).show() $("img", thisConversation.util.outilsBan).unbind("click") $("#slap", thisConversation.util.outilsBan).click( function()