Select next message after removing one from list
| | |
| | | { |
| | | id = selection[n]; |
| | | a_uids[a_uids.length] = id; |
| | | this.message_list.remove_row(id); |
| | | this.message_list.remove_row(id, (n == selection.length-1)); |
| | | } |
| | | |
| | | this.message_list.select_next(); |
| | | } |
| | | |
| | | // also send search request to get the right messages |
| | |
| | | /** |
| | | * '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; |
| | | }, |
| | | |