| | |
| | | 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') |
| | |
| | | modal: true, |
| | | closeOnEscape: false, |
| | | close: function(e, ui) { |
| | | (rcmail.is_framed() ? parent.rcmail : rcmail).ksearch_hide(); |
| | | me.acl_form.appendTo(body).hide(); |
| | | $(this).remove(); |
| | | } |