diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-05-01 11:54:03 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-05-01 11:54:03 +0000 |
| commit | a6186d167cab0a27893b25fc8bd00a2d90df75e1 (patch) | |
| tree | f6b14ddec438d4ac3280cecaffc7948c8b056fd5 /roundcubemail/program/js | |
| parent | fa55ecaaf544e5b770d742b06bcb9639a34683ad (diff) | |
Enable saving of contacts (closes #1484349)
git-svn-id: https://svn.roundcube.net/trunk@545 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 8d97a512a..5edef2c9f 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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); |
