move js from matrix page

This commit is contained in:
friendica 2013-08-15 05:09:19 -07:00
parent c17f7124f3
commit 92747366af
2 changed files with 9 additions and 17 deletions

View File

@ -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) {

9
view/js/mod_network.js Normal file
View File

@ -0,0 +1,9 @@
$(document).ready(function() {
var a;
a = $("#search-text").autocomplete({
serviceUrl: baseurl + '/search_ac',
minChars: 2,
width: 350,
});
});