diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-07-08 10:10:16 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-07-08 10:10:16 +0200 |
commit | 43b225d18333530abf17f5ca39140d417cc69490 (patch) | |
tree | de7e7fd17f9046f856b93599641ecb6254b48265 /plugins/acl/acl.js | |
parent | b231c8f6accb7c04461ab8364016d0abbe81f82e (diff) |
Support contact_search_name option in ACL plugin autocompletion
Diffstat (limited to 'plugins/acl/acl.js')
-rw-r--r-- | plugins/acl/acl.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/acl/acl.js b/plugins/acl/acl.js index d82725c8b..e59ac72a2 100644 --- a/plugins/acl/acl.js +++ b/plugins/acl/acl.js @@ -24,11 +24,7 @@ if (window.rcmail) { if (e.field.id != 'acluser') return; - var value = e.insert; - // get UID from the entry value - if (value.match(/\s*\(([^)]+)\)[, ]*$/)) - value = RegExp.$1; - e.field.value = value; + e.field.value = e.insert.replace(/[ ,;]+$/, ''); }); } } |