Changeset 828 in subversion


Ignore:
Timestamp:
Sep 26, 2007 12:42:16 PM (6 years ago)
Author:
thomasb
Message:

Select next message after removing one from list

Location:
trunk/roundcubemail/program/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/js/app.js

    r822 r828  
    14411441        id = selection[n]; 
    14421442        a_uids[a_uids.length] = id; 
    1443         this.message_list.remove_row(id); 
    1444         } 
    1445  
    1446       this.message_list.select_next(); 
     1443        this.message_list.remove_row(id, (n == selection.length-1)); 
     1444        } 
    14471445      } 
    14481446       
  • trunk/roundcubemail/program/js/list.js

    r776 r828  
    133133 * 'remove' message row from list (just hide it) 
    134134 */ 
    135 remove_row: function(uid) 
     135remove_row: function(uid, sel_next) 
    136136{ 
    137137  if (this.rows[uid].obj) 
    138138    this.rows[uid].obj.style.display = 'none'; 
     139 
     140  if (sel_next) 
     141    this.select_next(); 
    139142 
    140143  this.rows[uid] = null; 
Note: See TracChangeset for help on using the changeset viewer.