summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-09-26 16:42:16 +0000
committerthomascube <thomas@roundcube.net>2007-09-26 16:42:16 +0000
commitb6265631f065f355a5ec3886eb185830a22c6a8c (patch)
tree9e1e9ba2ff573473ded8a1bd6b4d55fa342fd8d9 /program/js/list.js
parent5e804573838afbfea4ccfcb321eca7ddd3be79ce (diff)
Select next message after removing one from list
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/js/list.js b/program/js/list.js
index 6a083a2e7..ccc0dda72 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -132,11 +132,14 @@ clear: function(sel)
/**
* '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;
},