thomascube
2007-09-26 b6265631f065f355a5ec3886eb185830a22c6a8c
Select next message after removing one from list

2 files modified
9 ■■■■■ changed files
program/js/app.js 4 ●●● patch | view | raw | blame | history
program/js/list.js 5 ●●●● patch | view | raw | blame | history
program/js/app.js
@@ -1440,10 +1440,8 @@
        {
        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 
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;
},