From 3412e50b54e3daac8745234e21ab6e72be0ed165 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Wed, 04 Jun 2014 11:20:33 -0400 Subject: [PATCH] Fix attachment menu structure and aria-attributes --- plugins/acl/acl.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/plugins/acl/acl.js b/plugins/acl/acl.js index 0ee45d7..acea60a 100644 --- a/plugins/acl/acl.js +++ b/plugins/acl/acl.js @@ -14,6 +14,11 @@ 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') @@ -338,6 +343,7 @@ modal: true, closeOnEscape: false, close: function(e, ui) { + (rcmail.is_framed() ? parent.rcmail : rcmail).ksearch_hide(); me.acl_form.appendTo(body).hide(); $(this).remove(); } -- Gitblit v1.9.1