summaryrefslogtreecommitdiff
path: root/plugins/acl
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-02-11 21:12:34 +0100
committerThomas Bruederli <thomas@roundcube.net>2014-02-11 21:13:51 +0100
commitce29296fa9ce609ef8805207044f36658a515c31 (patch)
treeb691803ebbd46353b37dbec4dfb4f9bc767cb23d /plugins/acl
parente089c5adc83b7b0a9085a0de3cc018184abc0316 (diff)
Update env in main window for ACL dialog autocompletion (#1489594)
Diffstat (limited to 'plugins/acl')
-rw-r--r--plugins/acl/acl.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/acl/acl.js b/plugins/acl/acl.js
index 7eb2653b3..acea60a4c 100644
--- a/plugins/acl/acl.js
+++ b/plugins/acl/acl.js
@@ -14,6 +14,11 @@ if (window.rcmail) {
var inst = rcmail.is_framed() ? parent.rcmail : rcmail;
inst.init_address_input_events($('#acluser'), {action:'settings/plugin.acl-autocomplete'});
+ // pass config settings and localized texts to autocomplete context
+ inst.set_env({ autocomplete_max:rcmail.env.autocomplete_max, autocomplete_min_length:rcmail.env.autocomplete_min_length });
+ inst.add_label('autocompletechars', rcmail.labels.autocompletechars);
+ inst.add_label('autocompletemore', rcmail.labels.autocompletemore);
+
// fix inserted value
inst.addEventListener('autocomplete_insert', function(e) {
if (e.field.id != 'acluser')