summaryrefslogtreecommitdiffstats
path: root/lib/kolab_client_task.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-01-04 14:43:38 +0100
committerAleksander Machniak <alec@alec.pl>2013-01-04 14:43:38 +0100
commit09365af3e7e653d98b8ab9780a82dd1351e1c91b (patch)
tree7eca83d175eef1ea80eb927277a9c6174f6a4ce3 /lib/kolab_client_task.php
parent630e3b6ce7ba2b99f9b2329752b6500a364269a8 (diff)
downloadwebadmin-09365af3e7e653d98b8ab9780a82dd1351e1c91b.tar.gz
Implement autocompletion minimum length limit (add 'autocomplete_min_length' option) (Bug #1486)
Increase autocompletion request delay - the time from key press to the request (Bug #1486)
Diffstat (limited to 'lib/kolab_client_task.php')
-rw-r--r--lib/kolab_client_task.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php
index 5fe2473..8583e01 100644
--- a/lib/kolab_client_task.php
+++ b/lib/kolab_client_task.php
@@ -1315,9 +1315,12 @@ class kolab_client_task
));
}
+ $ac_min_len = $this->config_get('autocomplete_min_length', 1, Conf::INT);
+
$this->output->set_env('form_id', $attribs['id']);
$this->output->set_env('assoc_fields', $assoc_fields);
$this->output->set_env('required_fields', $req_fields);
+ $this->output->set_env('autocomplete_min_length', $ac_min_len);
$this->output->add_translation('form.required.empty', 'form.maxcount.exceeded',
$name . '.add.success', $name . '.edit.success', $name . '.delete.success',
'add', 'edit', 'delete');