diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-06 07:39:57 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-06 07:39:57 +0000 |
| commit | 3f6959dbbfb64f59563e769c5acd4bee42bbc81e (patch) | |
| tree | 48e5025d816bec0f0b74cc97cb7a8b0a27ca3f74 /roundcubemail/program/js/app.js | |
| parent | 77915733634c6b377dd8f3294d0d72d170f51b8f (diff) | |
- improve performance and consistency by setting all list-related env data in list action only
git-svn-id: https://svn.roundcube.net/trunk@3595 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 3304c1325..23a64e66e 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -165,9 +165,10 @@ function rcube_webmail() if (this.gui_objects.messagelist) { - this.message_list = new rcube_list_widget(this.gui_objects.messagelist, - {multiselect:true, multiexpand:true, draggable:true, keyboard:true, - column_movable:this.env.col_movable, column_fixed:0, dblclick_time:this.dblclick_time}); + this.message_list = new rcube_list_widget(this.gui_objects.messagelist, { + multiselect:true, multiexpand:true, draggable:true, keyboard:true, + column_movable:this.env.col_movable, column_fixed:0, dblclick_time:this.dblclick_time + }); this.message_list.row_init = function(o){ p.init_message_row(o); }; this.message_list.addEventListener('dblclick', function(o){ p.msglist_dbl_click(o); }); this.message_list.addEventListener('click', function(o){ p.msglist_click(o); }); @@ -186,8 +187,7 @@ function rcube_webmail() this.enable_command('toggle_status', 'toggle_flag', 'menu-open', 'menu-save', true); // load messages - if (this.env.messagecount) - this.command('list'); + this.command('list'); } if (this.gui_objects.qsearchbox) { @@ -247,16 +247,6 @@ function rcube_webmail() else if (this.env.action == 'print') window.print(); - if (this.env.messagecount) { - this.enable_command('select-all', 'select-none', 'expunge', true); - this.enable_command('expand-all', 'expand-unread', 'collapse-all', this.env.threading); - } - - if (this.purge_mailbox_test()) - this.enable_command('purge', true); - - this.set_page_buttons(); - // get unread count for each mailbox if (this.gui_objects.mailboxlist) { this.env.unread_counts = {}; |
