From b6265631f065f355a5ec3886eb185830a22c6a8c Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 26 Sep 2007 12:42:16 -0400
Subject: [PATCH] Select next message after removing one from list

---
 program/js/list.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/program/js/list.js b/program/js/list.js
index 6a083a2..ccc0dda 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -132,11 +132,14 @@
 /**
  * 'remove' message row from list (just hide it)
  */
-remove_row: function(uid)
+remove_row: function(uid, sel_next)
 {
   if (this.rows[uid].obj)
     this.rows[uid].obj.style.display = 'none';
 
+  if (sel_next)
+    this.select_next();
+
   this.rows[uid] = null;
 },
 

--
Gitblit v1.9.1