summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-05-06 07:39:57 +0000
committeralecpl <alec@alec.pl>2010-05-06 07:39:57 +0000
commit9800a825e7a98d3bd857f168e697555259098932 (patch)
tree54938ef6e0e7fe2e89d4302b9234f2e7416cd13b /program/js
parent1f019c8e5886461eb1ab0c053d88527d45ccacde (diff)
- improve performance and consistency by setting all list-related env data in list action only
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js20
1 files changed, 5 insertions, 15 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 3304c1325..23a64e66e 100644
--- a/program/js/app.js
+++ b/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 = {};