X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageMinichat%2Fconversation.js;h=5a10c5a56b8603e62eb005092504d72ce1465948;hp=20343f9f49bfc4a4ca6d18a58b7bac35b92e3548;hb=7203835bce6f94b6afcc7403694145c829a4f833;hpb=f2eb4c4ec53b164804c0c7441830372358ce74e6 diff --git a/js/pageMinichat/conversation.js b/js/pageMinichat/conversation.js index 20343f9..5a10c5a 100644 --- a/js/pageMinichat/conversation.js +++ b/js/pageMinichat/conversation.js @@ -238,7 +238,6 @@ euphorik.Conversation.prototype.flush = function() { var thisConversation = this; var reverse = this.client.chatOrder === "reverse"; - // est-ce que le prochain message est pair ? (permet d'alterner le style des messages) var messagePair = (this.idDernierMessageAffiche === 0 ? true : ($("#" + this.getId() + " .messages div:" + (reverse ? "first" : "last")).attr("class").search("messagePair") === -1) ); @@ -251,7 +250,7 @@ euphorik.Conversation.prototype.flush = function() { messagePair = !messagePair; } }); - + var DOM = $(XHTML); // pour chaque nouveau message au niveau du document on lui assigne ses événements @@ -410,7 +409,7 @@ euphorik.Conversation.prototype.afficherConversation = function(id) { function() { var jq = $(this); var statut = mess[thisConversation.idMessageFromString(jq.attr("id"))]; - if (!statut) { + if (statut === undefined) { jq.addClass("cache"); } else { jq.removeClass("cache");