diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-22 12:33:28 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-22 12:33:28 +0000 |
| commit | 53ad8974da0543a7c047dfb61c6440a75adf2dbc (patch) | |
| tree | 0e325ec553313a3aa401b43549200b617edb391e /roundcubemail/program | |
| parent | 1f88b0fb4e7b4a4813bf75223f9c4529f3172c0e (diff) | |
- allow to enable/disable configuration for only some of special folders
git-svn-id: https://svn.roundcube.net/trunk@1883 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/steps/settings/func.inc | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/roundcubemail/program/steps/settings/func.inc b/roundcubemail/program/steps/settings/func.inc index 4ea8dad4b..f115ad900 100644 --- a/roundcubemail/program/steps/settings/func.inc +++ b/roundcubemail/program/steps/settings/func.inc @@ -233,18 +233,26 @@ function rcmail_user_prefs_form($attrib) $table = new html_table(array('cols' => 2)); - $table->add('title', Q(rcube_label('drafts'))); - $table->add(null, $select->show($config['drafts_mbox'], array('name' => "_drafts_mbox", 'onchange' => "document.getElementById('rcmfd_autosave').disabled=this.selectedIndex==0"))); - - $table->add('title', Q(rcube_label('sent'))); - $table->add(null, $select->show($config['sent_mbox'], array('name' => "_sent_mbox"))); - - $table->add('title', Q(rcube_label('junk'))); - $table->add(null, $select->show($config['junk_mbox'], array('name' => "_junk_mbox"))); - - $table->add('title', Q(rcube_label('trash'))); - $table->add(null, $select->show($config['trash_mbox'], array('name' => "_trash_mbox"))); - + if (!isset($no_override['drafts_mbox'])) { + $table->add('title', Q(rcube_label('drafts'))); + $table->add(null, $select->show($config['drafts_mbox'], array('name' => "_drafts_mbox", 'onchange' => "document.getElementById('rcmfd_autosave').disabled=this.selectedIndex==0"))); + } + + if (!isset($no_override['sent_mbox'])) { + $table->add('title', Q(rcube_label('sent'))); + $table->add(null, $select->show($config['sent_mbox'], array('name' => "_sent_mbox"))); + } + + if (!isset($no_override['junk_mbox'])) { + $table->add('title', Q(rcube_label('junk'))); + $table->add(null, $select->show($config['junk_mbox'], array('name' => "_junk_mbox"))); + } + + if (!isset($no_override['trash_mbox'])) { + $table->add('title', Q(rcube_label('trash'))); + $table->add(null, $select->show($config['trash_mbox'], array('name' => "_trash_mbox"))); + } + $out .= html::tag('fieldset', null, html::tag('legend', null, Q(rcube_label('specialfolders'))) . $table->show($attrib)); } |
