From c296b810bc63c91f27c4c601646d5011cae54b5f Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Sun, 07 Nov 2010 03:36:52 -0500 Subject: [PATCH] - Add option for minimum length of autocomplete's string (#1486428) --- program/steps/mail/compose.inc | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 2c29fc7..471649c 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -112,7 +112,8 @@ // 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 @@ $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']) -- Gitblit v1.9.1