summaryrefslogtreecommitdiff
path: root/plugins/acl/acl.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-21 17:35:04 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-21 17:35:04 +0000
commitf21d21e74ffba0852fe02eb7cad9d62d6b5735d4 (patch)
treef6ec5174d2e24e08468c00dc929c52ec45ad306f /plugins/acl/acl.php
parentd80ad91b666dcc8d2f87d2a2b26ce318f3007f4a (diff)
- Make the plugin aware of autocomplete_* options
- Fix non-working backspace key in name field git-svn-id: https://svn.roundcube.net/trunk@5263 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/acl/acl.php')
-rw-r--r--plugins/acl/acl.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php
index 976b36260..fe7d0d5eb 100644
--- a/plugins/acl/acl.php
+++ b/plugins/acl/acl.php
@@ -3,7 +3,7 @@
/**
* Folders Access Control Lists Management (RFC4314, RFC2086)
*
- * @version 0.6.1
+ * @version 0.6.2
* @author Aleksander Machniak <alec@alec.pl>
*
*
@@ -87,10 +87,11 @@ class acl extends rcube_plugin
$this->load_config();
$search = get_input_value('_search', RCUBE_INPUT_GPC, true);
+ $sid = get_input_value('_id', RCUBE_INPUT_GPC);
$users = array();
if ($this->init_ldap()) {
- $this->ldap->set_pagesize(15);
+ $this->ldap->set_pagesize((int)$this->rc->config->get('autocomplete_max', 15));
$result = $this->ldap->search('*', $search);
foreach ($result->records as $record) {
@@ -112,7 +113,7 @@ class acl extends rcube_plugin
sort($users, SORT_LOCALE_STRING);
- $this->rc->output->command('ksearch_query_results', $users, $search);
+ $this->rc->output->command('ksearch_query_results', $users, $search, $sid);
$this->rc->output->send();
}
@@ -186,6 +187,10 @@ class acl extends rcube_plugin
'aclrights' => array($this, 'templ_rights'),
));
+ $this->rc->output->set_env('autocomplete_max', (int)$this->rc->config->get('autocomplete_max', 15));
+ $this->rc->output->set_env('autocomplete_min_length', $this->rc->config->get('autocomplete_min_length'));
+ $this->rc->output->add_label('autocompletechars', 'autocompletemore');
+
$args['form']['sharing'] = array(
'name' => Q($this->gettext('sharing')),
'content' => $this->rc->output->parse('acl.table', false, false),