X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Fchat%2Fconversation.js;h=5321380b4d071644e4e2486474f16839180ddf56;hp=635f50a4dcf70bc859b2732766658eb42362102c;hb=5dc140390551c133ac5525725a86854ca69679af;hpb=e49a1c483f1751f129c0766d1061b3da44b60581 diff --git a/js/chat/conversation.js b/js/chat/conversation.js index 635f50a..5321380 100644 --- a/js/chat/conversation.js +++ b/js/chat/conversation.js @@ -56,7 +56,7 @@ euphorik.Conversation = function(conversations, num) { '
' + (reverse ? messageRacineXHTML : "") + '
+ (this.num === 0 ? '' : '
') + //
'<1>' + '
' + (reverse ? "" : messageRacineXHTML) + @@ -71,7 +71,7 @@ euphorik.Conversation = function(conversations, num) { this.util.infoBulle("Aller à la première page", $("#" + this.getId() + " .titre .numPage"), euphorik.Util.positionBulleType.haut); if (this.num !== 0) { this.util.infoBulle("Créer un lien vers la conversation", $("#" + this.getId() + " .titre .creerLien")); - this.util.infoBulle("Fermer la conversation", $("#" + this.getId() + " .titre .fermer")); + this.util.infoBulle("Close the conversation", $("#" + this.getId() + " .titre .close")); } // les différents événements liés à la conversation @@ -82,7 +82,7 @@ euphorik.Conversation = function(conversations, num) { "{" + thisConversation.client.conversations[thisConversation.num - 1].root.toString(36) + "}" ); }); - $("#" + this.getId() + " .titre .fermer").click(function() { + $("#" + this.getId() + " .titre .close").click(function() { thisConversation.conversations.supprimerConversation(thisConversation.num); }); /* @@ -96,7 +96,7 @@ euphorik.Conversation = function(conversations, num) { euphorik.Conversation.prototype.getMessageReduit = function() { return '' + '' + - '' + + '' + '' + 'Blabla blablablabla bla blabla ..' + '' + @@ -319,7 +319,7 @@ euphorik.Conversation.prototype.attacherEventsSurMessage = function(element) { } var thisConversation = this; - $(".lienConv", element).click( + $(".conversationLink", element).click( function(event) { // FIXME : ya pas mieux ? var racine = $(event.target).text(); @@ -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() {