From fd3adf4d11c3c9f2ff92389b315da90f2a47c1b7 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 24 Feb 2023 21:35:22 +0000 Subject: slightly improve contact search --- view/js/mod_connections.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'view/js/mod_connections.js') diff --git a/view/js/mod_connections.js b/view/js/mod_connections.js index 848e9ed9f..cb3ecc922 100644 --- a/view/js/mod_connections.js +++ b/view/js/mod_connections.js @@ -1,5 +1,7 @@ $(document).ready(function() { - $("#contacts-search").contact_autocomplete(baseurl + '/acl', 'a', true); + $("#contacts-search").name_autocomplete(baseurl + '/acl', 'a', true, function(data) { + $("#contacts-search-xchan").val(data.xid); + }); $(".autotime").timeago(); }); -- cgit v1.2.3