From f6158580ec307685d5ac2075ff7a58f205335690 Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Sat, 3 May 2008 23:09:25 +0000 Subject: [PATCH] =?utf8?q?MOD=20optimisation=20qui=20je=20l'esp=C3=A8re=20?= =?utf8?q?n'a=20pas=20trop=20foutu=20la=20merde?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/pageMinichat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/pageMinichat.js b/js/pageMinichat.js index 9e042e4..637ff21 100755 --- a/js/pageMinichat.js +++ b/js/pageMinichat.js @@ -520,8 +520,8 @@ Conversation.prototype.flush = function(funClickExtract, funClickLienConv) } ) - this.idDernierMessageAffiche = jQuery("#conversations #" + this.getId() + " div:first").attr("id") - this.idDernierMessageAffiche = (this.idDernierMessageAffiche == undefined ? 0 : parseInt(this.idDernierMessageAffiche, 36)) + if (this.messages.length > 0) + this.idDernierMessageAffiche = this.messages[this.messages.length-1].id } /** -- 2.43.0