aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/mod/network.php b/mod/network.php
index 07b91b1be..f9f9b4a02 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -114,6 +114,25 @@ function network_init(&$a) {
$a->page['aside'] .= saved_searches($search);
$a->page['aside'] .= fileas_widget($a->get_baseurl(true) . '/network',(x($_GET, 'file') ? $_GET['file'] : ''));
+ $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 = $("#search-text").autocomplete({
+ serviceUrl: '$base/search_ac',
+ minChars: 2,
+ width: 350,
+ });
+});
+</script>
+EOT;
+
+
+
}
function saved_searches($search) {