- allow to enable/disable configuration for only some of special folders

release-0.6
alecpl 16 years ago
parent cc669e3727
commit e98809ae55

@ -233,17 +233,25 @@ function rcmail_user_prefs_form($attrib)
$table = new html_table(array('cols' => 2)); $table = new html_table(array('cols' => 2));
$table->add('title', Q(rcube_label('drafts'))); if (!isset($no_override['drafts_mbox'])) {
$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('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'))); if (!isset($no_override['sent_mbox'])) {
$table->add(null, $select->show($config['sent_mbox'], array('name' => "_sent_mbox"))); $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'))); if (!isset($no_override['junk_mbox'])) {
$table->add(null, $select->show($config['junk_mbox'], array('name' => "_junk_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'))); if (!isset($no_override['trash_mbox'])) {
$table->add(null, $select->show($config['trash_mbox'], array('name' => "_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)); $out .= html::tag('fieldset', null, html::tag('legend', null, Q(rcube_label('specialfolders'))) . $table->show($attrib));
} }

Loading…
Cancel
Save