summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-22 10:04:31 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-22 10:04:31 +0000
commite5b14be82dd654ef4553fc1188ccf45281e09644 (patch)
treee9da85cd94714bfb833c936308daa24f88f96499 /roundcubemail/program/js
parenta2ec9d5618db0a6db49cbc00217e21d7f44c3958 (diff)
- Small cleanup + fix: list contacts on when list object is found
git-svn-id: https://svn.roundcube.net/trunk@5268 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js15
1 files changed, 5 insertions, 10 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 6acb48d86..74c602eea 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -278,6 +278,9 @@ function rcube_webmail()
if (this.gui_objects.folderlist)
this.env.contactfolders = $.extend($.extend({}, this.env.address_sources), this.env.contactgroups);
+ this.enable_command('add', 'import', this.env.writable_source);
+ this.enable_command('list', 'listgroup', 'listsearch', 'advanced-search', true);
+
if (this.gui_objects.contactslist) {
this.contact_list = new rcube_list_widget(this.gui_objects.contactslist,
@@ -300,6 +303,7 @@ function rcube_webmail()
}
this.update_group_commands();
+ this.command('list');
}
this.set_page_buttons();
@@ -319,22 +323,13 @@ function rcube_webmail()
if (this.env.action == 'add' || this.env.action == 'edit')
this.init_contact_form();
}
+
if (this.gui_objects.qsearchbox) {
this.enable_command('search', 'reset-search', 'moveto', true);
}
- if (this.contact_list && this.contact_list.rowcount > 0)
- this.enable_command('export', true);
-
- this.enable_command('add', 'import', this.env.writable_source);
- this.enable_command('list', 'listgroup', 'listsearch', 'advanced-search', true);
-
- // load contacts of selected source
- if (!this.env.action)
- this.command('list', this.env.source);
break;
-
case 'settings':
this.enable_command('preferences', 'identities', 'save', 'folders', true);