contacts search autocomplete
This commit is contained in:
parent
5389efffa9
commit
49732114d7
2 changed files with 43 additions and 2 deletions
|
|
@ -43,6 +43,25 @@ function contacts_init(&$a) {
|
|||
$a->page['aside'] .= findpeople_widget();
|
||||
|
||||
$a->page['aside'] .= networks_widget('contacts',$_GET['nets']);
|
||||
$base = $a->get_baseurl();
|
||||
|
||||
$a->page['htmlhead'] .= '<script src="' . $a->get_baseurl(true) . '/library/jquery_ac/friendica.complete.js" ></script>';
|
||||
$a->page['htmlhead'] .= <<< EOT
|
||||
|
||||
<script>$(document).ready(function() {
|
||||
var a;
|
||||
a = $("#contacts-search").autocomplete({
|
||||
serviceUrl: '$base/acl',
|
||||
width: 350,
|
||||
});
|
||||
a.setOptions({ params: { type: 'a' }});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
EOT;
|
||||
|
||||
|
||||
}
|
||||
|
||||
function contacts_post(&$a) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue