From c296b810bc63c91f27c4c601646d5011cae54b5f Mon Sep 17 00:00:00 2001 From: alecpl Date: Sun, 7 Nov 2010 08:36:52 +0000 Subject: - Add option for minimum length of autocomplete's string (#1486428) --- program/steps/mail/compose.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'program/steps/mail/compose.inc') diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 2c29fc708..471649c04 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -112,7 +112,8 @@ if (!is_array($_SESSION['compose']) || $_SESSION['compose']['id'] != $MESSAGE_ID // add some labels to client $OUTPUT->add_label('nosubject', 'nosenderwarning', 'norecipientwarning', 'nosubjectwarning', 'cancel', 'nobodywarning', 'notsentwarning', 'notuploadedwarning', 'savingmessage', 'sendingmessage', - 'messagesaved', 'converting', 'editorwarning', 'searching', 'uploading', 'fileuploaderror'); + 'messagesaved', 'converting', 'editorwarning', 'searching', 'uploading', 'fileuploaderror', + 'autocompletechars'); // add config parameters to client script if (!empty($CONFIG['drafts_mbox'])) { @@ -123,6 +124,7 @@ if (!empty($CONFIG['drafts_mbox'])) { $OUTPUT->set_env('mailbox', $IMAP->get_mailbox_name()); $OUTPUT->set_env('sig_above', $CONFIG['sig_above']); $OUTPUT->set_env('top_posting', $CONFIG['top_posting']); +$OUTPUT->set_env('autocomplete_min_length', $CONFIG['autocomplete_min_length']); // get reference message and set compose mode if ($msg_uid = $_SESSION['compose']['param']['reply_uid']) -- cgit v1.2.3