aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-02-24 21:35:22 +0000
committerMario <mario@mariovavti.com>2023-02-24 21:35:22 +0000
commitfd3adf4d11c3c9f2ff92389b315da90f2a47c1b7 (patch)
tree4c1f423b634407f47d2737d967de620f195a0843 /view
parentc42911bd8db98129beb9412c9b7fd9fd3860b80c (diff)
downloadvolse-hubzilla-fd3adf4d11c3c9f2ff92389b315da90f2a47c1b7.tar.gz
volse-hubzilla-fd3adf4d11c3c9f2ff92389b315da90f2a47c1b7.tar.bz2
volse-hubzilla-fd3adf4d11c3c9f2ff92389b315da90f2a47c1b7.zip
slightly improve contact search
Diffstat (limited to 'view')
-rw-r--r--view/js/mod_connections.js4
-rw-r--r--view/tpl/connections.tpl1
2 files changed, 4 insertions, 1 deletions
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();
});
diff --git a/view/tpl/connections.tpl b/view/tpl/connections.tpl
index 5fec38a84..5fb6b0007 100644
--- a/view/tpl/connections.tpl
+++ b/view/tpl/connections.tpl
@@ -22,6 +22,7 @@
<form action="{{$cmd}}" method="get" name="contacts-search-form">
<div class="input-group mb-3">
<input type="text" name="search" id="contacts-search" class="form-control" onfocus="this.select();" value="{{$search}}" placeholder="{{$desc}}" />
+ <input type="hidden" name="search_xchan" id="contacts-search-xchan" value=""/>
<button id="contacts-search-submit" class="btn btn-primary" type="submit"><i class="fa fa-fw fa-search"></i></button>
</div>
</form>