aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-15 05:09:19 -0700
committerfriendica <info@friendica.com>2013-08-15 05:09:19 -0700
commit92747366afd6068f563063b00bbf5f2373b6a834 (patch)
tree68c79dcba2f4a6be4284d6bc6516f5698863ffe2
parentc17f7124f31a6289db75eb71e3b723f286eb7d52 (diff)
downloadvolse-hubzilla-92747366afd6068f563063b00bbf5f2373b6a834.tar.gz
volse-hubzilla-92747366afd6068f563063b00bbf5f2373b6a834.tar.bz2
volse-hubzilla-92747366afd6068f563063b00bbf5f2373b6a834.zip
move js from matrix page
-rw-r--r--mod/network.php17
-rw-r--r--view/js/mod_network.js9
2 files changed, 9 insertions, 17 deletions
diff --git a/mod/network.php b/mod/network.php
index 413990ce2..e44a604de 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -104,23 +104,6 @@ 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'] .= <<< 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) {
diff --git a/view/js/mod_network.js b/view/js/mod_network.js
new file mode 100644
index 000000000..7c3a9d246
--- /dev/null
+++ b/view/js/mod_network.js
@@ -0,0 +1,9 @@
+$(document).ready(function() {
+ var a;
+ a = $("#search-text").autocomplete({
+ serviceUrl: baseurl + '/search_ac',
+ minChars: 2,
+ width: 350,
+ });
+});
+