summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-03-03 18:33:28 +0000
committerthomascube <thomas@roundcube.net>2012-03-03 18:33:28 +0000
commit18a28ae3f8fcaf78d5304c2d7dfce3991791239e (patch)
tree8b06939d64a335aa350b9a79f663d3aac3adea3e /program
parent6357223bd1a8d5ce8d3658e5940aa71e663cf033 (diff)
Move address book widget initialization out of the 'compose' action block
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js28
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);