From 8e4d66dd7b232f487e11fab249ca30336cbb3a6f Mon Sep 17 00:00:00 2001 From: Stefan Parviainen Date: Wed, 7 Jan 2015 20:57:10 +0100 Subject: Make mod_connections search use textcomplete --- view/js/mod_connections.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'view/js/mod_connections.js') diff --git a/view/js/mod_connections.js b/view/js/mod_connections.js index 8a8f2fee6..6393630b3 100644 --- a/view/js/mod_connections.js +++ b/view/js/mod_connections.js @@ -1,13 +1,5 @@ $(document).ready(function() { - var a; - a = $("#contacts-search").autocomplete({ - serviceUrl: baseurl + '/acl', - minChars: 2, - width: 250, - id: 'contact-search-ac', - }); - a.setOptions({ autoSubmit: true, params: { type: 'a' }}); - + $("#contacts-search").contact_autocomplete(baseurl + '/acl', 'a'); }); $("#contacts-search").keyup(function(event){ -- cgit v1.2.3 From d7a3d9f60654a721cb00d78dd653fd56e4e9fb53 Mon Sep 17 00:00:00 2001 From: Stefan Parviainen Date: Wed, 7 Jan 2015 21:32:17 +0100 Subject: Add autosubmit feature to textcomplete based autocompleter --- view/js/mod_connections.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/js/mod_connections.js') diff --git a/view/js/mod_connections.js b/view/js/mod_connections.js index 6393630b3..f29d96729 100644 --- a/view/js/mod_connections.js +++ b/view/js/mod_connections.js @@ -1,5 +1,5 @@ $(document).ready(function() { - $("#contacts-search").contact_autocomplete(baseurl + '/acl', 'a'); + $("#contacts-search").contact_autocomplete(baseurl + '/acl', 'a', true); }); $("#contacts-search").keyup(function(event){ -- cgit v1.2.3