aboutsummaryrefslogtreecommitdiffstats
path: root/mod/contacts.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-05 20:33:11 -0700
committerfriendica <info@friendica.com>2012-06-05 20:33:11 -0700
commit49732114d71a5bdb57c19f2f938284fb6ac2edf9 (patch)
tree8a005dfc977e150730116ddac69090677c3ce7a7 /mod/contacts.php
parent5389efffa9c8d2da40bf6ea448562ae67538e0d4 (diff)
downloadvolse-hubzilla-49732114d71a5bdb57c19f2f938284fb6ac2edf9.tar.gz
volse-hubzilla-49732114d71a5bdb57c19f2f938284fb6ac2edf9.tar.bz2
volse-hubzilla-49732114d71a5bdb57c19f2f938284fb6ac2edf9.zip
contacts search autocomplete
Diffstat (limited to 'mod/contacts.php')
-rw-r--r--mod/contacts.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/mod/contacts.php b/mod/contacts.php
index 769239fe0..f5125a7fe 100644
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -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) {