diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-10-23 18:11:41 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-10-23 18:11:41 +0000 |
| commit | 2cd32be45ba9c0d6afdab085523e0df3272e3dcf (patch) | |
| tree | 8b3b70f6530705939c5b03f7466368a3f4759ae6 /roundcubemail/program/js/list.js | |
| parent | 270f811da6c4454f2ab37753b670e4f056e6490b (diff) | |
- Don't display disabled sections in Settings (#1486099)
git-svn-id: https://svn.roundcube.net/trunk@3055 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/list.js')
| -rw-r--r-- | roundcubemail/program/js/list.js | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js index 01ad5f3c1..357a77ac2 100644 --- a/roundcubemail/program/js/list.js +++ b/roundcubemail/program/js/list.js @@ -320,7 +320,7 @@ click_row: function(e, id) /** - * get next/previous/last rows that are not hidden + * get first/next/previous/last rows that are not hidden */ get_next_row: function() { @@ -348,6 +348,20 @@ get_prev_row: function() return new_row; }, +get_first_row: function() +{ + if (this.rowcount) + { + var rows = this.list.tBodies[0].rows; + + for(var i=0; i<rows.length-1; i++) + if(rows[i].id && String(rows[i].id).match(/rcmrow([a-z0-9\-_=\+\/]+)/i) && this.rows[RegExp.$1] != null) + return RegExp.$1; + } + + return null; +}, + get_last_row: function() { if (this.rowcount) @@ -451,6 +465,16 @@ select_next: function() this.select_row(new_row.uid, false, false); }, +/** + * Select first row + */ +select_first: function() +{ + var first_row = this.get_first_row(); + if (first_row) + this.select_row(first_row, false, false); +}, + /** * Perform selection when shift key is pressed |
