summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
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;
},