From 095d05ef00674553be1d8ee693cfee26fc544510 Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 18 Sep 2008 10:14:16 +0000 Subject: #1484805: fix next/last page buttons when new message is added to the list + remove last message --- program/js/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'program/js/app.js') diff --git a/program/js/app.js b/program/js/app.js index 0f074f375..6ebc55669 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3559,6 +3559,14 @@ function rcube_webmail() row.appendChild(col); this.message_list.insert_row(row, attop); + + // remove 'old' row + if (attop && this.env.pagesize && this.message_list.rowcount > this.env.pagesize) + { + var uid = this.message_list.get_last_row(); + this.message_list.remove_row(uid); + this.message_list.clear_selection(uid); + } }; -- cgit v1.2.3