diff options
author | thomascube <thomas@roundcube.net> | 2007-05-01 11:54:03 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2007-05-01 11:54:03 +0000 |
commit | 56fab150b8f8a4269a2377c762a26f4978fc422e (patch) | |
tree | 6ec61fd0d3288390fe8e1414f4a0fdd11a2bc80a /program | |
parent | 24f8ce48ab1dc5e99a5c81c052c729a26b9e2916 (diff) |
Enable saving of contacts (closes #1484349)
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js index 8d97a512a..5edef2c9f 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -245,14 +245,13 @@ function rcube_webmail() this.set_page_buttons(); - var writeable; - if ((writeable = this.env.address_sources && !this.env.address_sources[this.env.source].readonly)) + if (this.env.address_sources && !this.env.address_sources[this.env.source].readonly) this.enable_command('add', true); if (this.env.cid) this.enable_command('show', 'edit', true); - if ((this.env.action=='add' || this.env.action=='edit') && writeable && this.gui_objects.editform) + if ((this.env.action=='add' || this.env.action=='edit') && this.gui_objects.editform) this.enable_command('save', true); else this.enable_command('search', 'reset-search', 'moveto', true); |