Skip to content
Browse files

restore depreciated export command for backwards compatibility

  • Loading branch information...
1 parent 518103e commit 8aa83d0ebea087c00c86b0aa73ce00b11ec02148 @JohnDoh JohnDoh committed Oct 18, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 program/js/app.js
View
7 program/js/app.js
@@ -1064,6 +1064,7 @@ function rcube_webmail()
this.goto_url('import', (this.env.source ? '_target='+urlencode(this.env.source)+'&' : ''));
break;
+ case 'export': // depreciated in 0.9
case 'export-all':
if (this.contact_list.rowcount > 0) {
this.goto_url('export', { _source: this.env.source, _gid: this.env.group, _search: this.env.search_request });
@@ -4295,7 +4296,7 @@ function rcube_webmail()
list.insert_row(row);
- this.enable_command('export-all', list.rowcount > 0);
+ this.enable_command('export', 'export-all', list.rowcount > 0);
};
this.init_contact_form = function()
@@ -6124,7 +6125,7 @@ function rcube_webmail()
}
this.enable_command('compose', (uid && this.contact_list.rows[uid]));
this.enable_command('delete', 'edit', writable);
- this.enable_command('export-all', (this.contact_list && this.contact_list.rowcount > 0));
+ this.enable_command('export', 'export-all', (this.contact_list && this.contact_list.rowcount > 0));
this.enable_command('export-selected', false);
}
@@ -6171,7 +6172,7 @@ function rcube_webmail()
}
}
else if (this.task == 'addressbook') {
- this.enable_command('export-all', (this.contact_list && this.contact_list.rowcount > 0));
+ this.enable_command('export', 'export-all', (this.contact_list && this.contact_list.rowcount > 0));
if (response.action == 'list' || response.action == 'search') {
this.enable_command('search-create', this.env.source == '');

0 comments on commit 8aa83d0

Please sign in to comment.
Something went wrong with that request. Please try again.