summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-06-05 07:42:45 +0000
committeralecpl <alec@alec.pl>2011-06-05 07:42:45 +0000
commit9382b6dfe1521bd5e7f7006ad9ba43315cc7d2e5 (patch)
tree667547be66108443379efcf0d251235854649b80 /program/js/app.js
parentb0c70b3ca7127b9028e666f15e24261414d3caa0 (diff)
- Fix contacts import (#1487947)
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/program/js/app.js b/program/js/app.js
index c81c511a9..88297e91d 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -304,15 +304,12 @@ function rcube_webmail()
if (this.gui_objects.qsearchbox) {
$(this.gui_objects.qsearchbox).focusin(function() { rcmail.contact_list.blur(); });
}
- }
-
- this.set_page_buttons();
- if (this.env.address_sources && this.env.address_sources[this.env.source] && !this.env.address_sources[this.env.source].readonly) {
- this.enable_command('add', 'import', true);
this.enable_command('group-create', this.env.address_sources[this.env.source].groups);
}
+ this.set_page_buttons();
+
if (this.env.cid) {
this.enable_command('show', 'edit', true);
// register handlers for group assignment via checkboxes
@@ -339,6 +336,7 @@ function rcube_webmail()
if (this.contact_list && this.contact_list.rowcount > 0)
this.enable_command('export', true);
+ this.enable_command('add', 'import', !this.env.readonly);
this.enable_command('list', 'listgroup', 'advanced-search', true);
break;