X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=js%2FpageMinichat.js;h=217069de404146c7aa7d20aff4095b34cc5cc49d;hb=bfb430d094eb0021777302c1191642eab4077e78;hp=6fe212a70337a5acf8db7f7a3190b5deaf416ae9;hpb=145974d77e365d720a83778626f7855eaa8e9b3f;p=euphorik.git diff --git a/js/pageMinichat.js b/js/pageMinichat.js index 6fe212a..217069d 100755 --- a/js/pageMinichat.js +++ b/js/pageMinichat.js @@ -19,8 +19,8 @@ PageMinichat.prototype.contenu = function()
\

\ \ - \ - \ + \ + \ \ \

\ @@ -552,7 +552,7 @@ Conversation.prototype.flush = function(funClickOuvrirConv) function(e) { var userId = parseInt($(this).attr("id").substr(4)) - var element = $(e.target) + var element = $(this) var h = element.height() var offset = element.offset() var outils = $("#outilsBan").css("top", offset.top - 2).css("left", offset.left - 2).height(h < 16 ? 16 : h).width(element.width() + 16 * 3 + 4 + 64).show() @@ -717,8 +717,8 @@ Messages.prototype.getJSONConversations = function() */ Messages.prototype.ajouterMessages = function(elements, numConversation) { - if (elements["messages"].length == 0 && typeof(this.conversations[numConversation]) == "undefined") - return false + if (elements["messages"].length == 0) + return this.conversations[numConversation] != undefined for (var i = 0; i < elements["messages"].length; i++) this.ajouterMessage(elements["messages"][i], numConversation)