aboutsummaryrefslogtreecommitdiffstats
path: root/mod/contacts.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2012-06-06 08:08:09 +0200
committerzottel <github@zottel.net>2012-06-06 08:08:09 +0200
commit2a83ebf77f87037c437f957a471764ad0c817235 (patch)
tree69d23ee01f73b3eae42cb9977236612e4e02725c /mod/contacts.php
parentef6446288ba4b7590cbb770cdf3c84524f96fd34 (diff)
parent6c3ab225f72a01a67fab0d896a7ad20f77f7f2b2 (diff)
downloadvolse-hubzilla-2a83ebf77f87037c437f957a471764ad0c817235.tar.gz
volse-hubzilla-2a83ebf77f87037c437f957a471764ad0c817235.tar.bz2
volse-hubzilla-2a83ebf77f87037c437f957a471764ad0c817235.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'mod/contacts.php')
-rw-r--r--mod/contacts.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/mod/contacts.php b/mod/contacts.php
index 769239fe0..a3e3f409b 100644
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -43,6 +43,26 @@ 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',
+ minChars: 2,
+ width: 350,
+ });
+ a.setOptions({ params: { type: 'a' }});
+
+});
+
+</script>
+EOT;
+
+
}
function contacts_post(&$a) {