From 710b1bd68465ad919aabd171f1ab597a192c367b Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 10 Nov 2011 14:30:51 +0000 Subject: - Add option to skip alternative email addresses in autocompletion --- program/steps/settings/func.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'program/steps/settings/func.inc') diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index bb144d4cb..6ba524724 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -659,6 +659,16 @@ function rcmail_user_prefs($current=null) ); } + if (!isset($no_override['autocomplete_single'])) { + $field_id = 'rcmfd_autocomplete_single'; + $checkbox = new html_checkbox(array('name' => '_autocomplete_single', 'id' => $field_id, 'value' => 1)); + + $blocks['main']['options']['autocomplete_single'] = array( + 'title' => html::label($field_id, Q(rcube_label('autocompletesingle'))), + 'content' => $checkbox->show($config['autocomplete_single']?1:0), + ); + } + break; // Special IMAP folders -- cgit v1.2.3