From: Greg Burri Date: Sat, 3 May 2008 23:09:25 +0000 (+0000) Subject: MOD optimisation qui je l'espère n'a pas trop foutu la merde X-Git-Tag: 1.0.0^2~119 X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=commitdiff_plain;h=f6158580ec307685d5ac2075ff7a58f205335690 MOD optimisation qui je l'espère n'a pas trop foutu la merde --- 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 } /**