From 956dc2acd6aee480b5daa4def16346f9bab80056 Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Sat, 26 Jul 2008 14:40:30 +0000 Subject: [PATCH] =?utf8?q?FIX=20bug=20dans=20la=20mise=20en=20=C3=A9videnc?= =?utf8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/pageMinichat/conversation.js | 2 +- js/pageMinichat/message.js | 11 +++++------ styles/1/img/fleche_proprietaire.png | Bin 301 -> 301 bytes styles/1/pageMinichat.css | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/js/pageMinichat/conversation.js b/js/pageMinichat/conversation.js index 20343f9..3948629 100644 --- a/js/pageMinichat/conversation.js +++ b/js/pageMinichat/conversation.js @@ -410,7 +410,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"); diff --git a/js/pageMinichat/message.js b/js/pageMinichat/message.js index c77ac58..67ba7e6 100644 --- a/js/pageMinichat/message.js +++ b/js/pageMinichat/message.js @@ -82,27 +82,26 @@ euphorik.Message.prototype.getConversation = function(messages) { // les messages faisant partie de la conversation var messagesEnEvidence = {}; - messagesEnEvidence[this.id] = 1; // parcours en profondeur - var f = function(m, premierNiveau, ensemble, evidence) { - objectEach(m[ensemble], function(id) { + var f = function(ids, premierNiveau, ensemble, evidence) { + objectEach(ids, function(id) { if (!messagesEnEvidence[id] || premierNiveau) { var message = messages.messagesParId[id]; if (message) { messagesEnEvidence[id] = premierNiveau ? evidence : (message.auteurId === thisMessage.auteurId ? 1 : 0); - f(message, false, ensemble, evidence); + f(message[ensemble], false, ensemble, evidence); } } }); }; // remonte le temps - f(this, true, "estReponduPar", 2); + f(this.estReponduPar, true, "estReponduPar", 2); // descent le temps - f(this, true, "repondA", 3); + f(this.repondA, true, "repondA", 3); return messagesEnEvidence; }; diff --git a/styles/1/img/fleche_proprietaire.png b/styles/1/img/fleche_proprietaire.png index 38845e2249dc18619c155157dc2cdb1bcc9080dd..3f17c3c3b93bbe20f881cc178d8abb51b1b02e8c 100644 GIT binary patch delta 185 zcmV;q07n0<0<8j&e1Cx9-wT2>SbPAZ(YBk-M&**pASR2+hcH?#8t*Y|8+-?YL9mX9 zhO^wkaqbQb!|)Bvz~DrdWmytSoXE?GjANJqJ)rQaeOi%Kbp#w!2#|Z#O$q__Ue%|t zTkRjj5MT(Ly=o_h08?O>LV!sMZ@?mkZ(tV8o-tepvuo_yLozTs)lCyGz_vMA;~mI@ n*|&`!U>?jKf7_kND)sCiH4bTtGR0EZL;l-3zZA;8u;GfH9m zo8QwApbwm^Gc64PCcq|z0OJ(ifVqZGVCp4!4Od>mRl9cQB{CfAp@|n@-Q2A44wPQP n`xjrp%u9Iur59DcOg;Mp`R+%t)vxmm00000NkvXXu0mjfrZ-iz diff --git a/styles/1/pageMinichat.css b/styles/1/pageMinichat.css index 71f6a08..6f386ce 100755 --- a/styles/1/pageMinichat.css +++ b/styles/1/pageMinichat.css @@ -244,7 +244,7 @@ background-image: url(img/fleche_repondu.png); } #page.minichat div.message.proprietaire .entete { - background-color: #13920f + background-color: #350a0a } #page.minichat div.message.proprietaire .delimitationEntete, #page.minichat div.message.proprietaire .repondA { -- 2.45.2