mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
slightly improve contact search
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user