diff options
| author | robin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-10-17 09:42:50 +0000 |
|---|---|---|
| committer | robin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-10-17 09:42:50 +0000 |
| commit | f3be53d06f585e47ef14989022ff2917638c5bca (patch) | |
| tree | 3045d5b718da6fe5af8c42cf13676e556a347aee | |
| parent | 6eda4a37efdf912a354a7549b49816126e24cc50 (diff) | |
Make sure the currently selected row is re-selected after re-initializing the folder list.
git-svn-id: https://svn.roundcube.net/trunk@880 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/js/app.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index c33c3464f..68996ae54 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -2654,6 +2654,7 @@ function rcube_webmail() var refrow, form; var tbody = this.gui_objects.subscriptionlist.tBodies[0]; var id = replace && replace.id ? replace.id : tbody.childNodes.length+1; + var selection = this.subscription_list.get_single_selection(); if (!id || !(refrow = document.getElementById(refid))) { @@ -2698,6 +2699,8 @@ function rcube_webmail() this.sort_subscription_list(); this.init_subscription_list(); + if (selection) + this.subscription_list.select_row(selection); if (document.getElementById('rcmrow'+id).scrollIntoView) document.getElementById('rcmrow'+id).scrollIntoView(); |
