aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-16 18:14:45 -0700
committerfriendica <info@friendica.com>2012-07-16 18:14:45 -0700
commit07c31d547fce54dfdcad34a77f1dfcc6269ef62c (patch)
tree24bfdbc7c91f390a401dfa75a0d127eb0c42db82 /mod/network.php
parentd3d60c8ae555a784427178235093de4d9cb13dad (diff)
downloadvolse-hubzilla-07c31d547fce54dfdcad34a77f1dfcc6269ef62c.tar.gz
volse-hubzilla-07c31d547fce54dfdcad34a77f1dfcc6269ef62c.tar.bz2
volse-hubzilla-07c31d547fce54dfdcad34a77f1dfcc6269ef62c.zip
unified search autocomplete backend, browser performance seems to be a bit sucky
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) {