X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2FpageMinichat.js;h=678dac3add9916f5ea06bd91161e69c5d612ae75;hb=4a510de0c99d080cdd3ecc837307ac8ee3509e87;hp=541c98081d50e78302367c77c3ba70065bc4211b;hpb=934ab32cd6fac44f6b3ebedef69ce1ccd0b8701b;p=euphorik.git diff --git a/js/pageMinichat.js b/js/pageMinichat.js index 541c980..678dac3 100755 --- a/js/pageMinichat.js +++ b/js/pageMinichat.js @@ -514,9 +514,9 @@ Conversation.prototype.flush = function(funClickOuvrirConv) "\">" + "
>
" + "[" + message.date + "]" + - "" + message.auteurId + "" + identifiant + ":" + + "" + message.auteurId + "" + identifiant + ":" + XHTMLrepondA + - "" + (message.systeme ? this.formateur.remplacerBalisesHTML(message.contenu) : this.formateur.traitementComplet(message.contenu, message.pseudo)) + "" + + "" + this.formateur.traitementComplet(message.contenu, message.pseudo) + "" + "" messagePair = !messagePair @@ -531,7 +531,7 @@ Conversation.prototype.flush = function(funClickOuvrirConv) $("#conversations #" + this.getId() + " .message").slice(this.nbMessageMax, nbMessagesAffiche).empty() // ajoute les événements liés à chaque nouveau message - $("#conversations #" + this.getId() + " .message").filter(function(){return parseInt($(this).attr("id").substr(4), 36) > thisConversation.idDernierMessageAffiche}).each( + $("#conversations #" + this.getId() + " .message").filter(function(){ return parseInt($(this).attr("id").substr(4), 36) > thisConversation.idDernierMessageAffiche }).each( function() { $(".lienConv", this).click( @@ -599,7 +599,7 @@ Conversation.prototype.flush = function(funClickOuvrirConv) var valCourant = $("input.message").val() if (valCourant == undefined) valCourant = "" - var tag = $(".pseudo", this).text() + "{" + idMess + "}" + ">" + var tag = $(".pseudo span.ident", this).text() + "{" + idMess + "}" + ">" if (valCourant.indexOf(tag, 0) == -1) $("input.message").val(tag + " " + valCourant) thisConversation.util.setCaretToEnd($("form input.message")[0]) @@ -840,8 +840,9 @@ Messages.prototype.supprimerConversation = function(num) * Ajuste la largeur des conversations en fonction de leur nombre. modifie l'attribut CSS 'width'. */ Messages.prototype.ajusterLargeurConversations = function() -{ - $("#conversations .conversation").css("width", 100 / this.conversations.length + "%") +{ + // le "- 0.01" evite que IE se chie dessus lamentablement et affiche les conversations les unes au dessus des autres + $("#conversations .conversation").css("width", (100 / this.conversations.length) - 0.01 + "%") } /**