diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/program/js/app.js b/program/js/app.js index 430d92daf..bd8669b0d 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -272,20 +272,6 @@ function rcube_webmail() // init message compose form this.init_messageform(); - - // init address book widget - if (this.gui_objects.contactslist) { - this.contact_list = new rcube_list_widget(this.gui_objects.contactslist, - { multiselect:true, draggable:false, keyboard:false }); - this.contact_list.addEventListener('select', function(o){ ref.compose_recipient_select(o); }); - this.contact_list.addEventListener('dblclick', function(o){ ref.compose_add_recipient('to'); }); - this.contact_list.init(); - } - - if (this.gui_objects.addressbookslist) { - this.gui_objects.folderlist = this.gui_objects.addressbookslist; - this.enable_command('list-adresses', true); - } } // show printing dialog else if (this.env.action == 'print' && this.env.uid) @@ -301,6 +287,20 @@ function rcube_webmail() this.http_request('getunread', ''); } + // init address book widget + if (this.gui_objects.contactslist) { + this.contact_list = new rcube_list_widget(this.gui_objects.contactslist, + { multiselect:true, draggable:false, keyboard:false }); + this.contact_list.addEventListener('select', function(o){ ref.compose_recipient_select(o); }); + this.contact_list.addEventListener('dblclick', function(o){ ref.compose_add_recipient('to'); }); + this.contact_list.init(); + } + + if (this.gui_objects.addressbookslist) { + this.gui_objects.folderlist = this.gui_objects.addressbookslist; + this.enable_command('list-adresses', true); + } + // ask user to send MDN if (this.env.mdn_request && this.env.uid) { var mdnurl = '_uid='+this.env.uid+'&_mbox='+urlencode(this.env.mailbox); |