1
0
Fork 0

rework autocomplete: make remote and local search work

This commit is contained in:
rabuzarus 2016-01-20 03:34:22 +01:00
commit c42922f25f
3 changed files with 119 additions and 0 deletions

View file

@ -11,10 +11,18 @@ function nav(&$a) {
if(!(x($a->page,'nav')))
$a->page['nav'] = '';
$base = z_root();
/**
* Placeholder div for popup panel
*/
$a->page['htmlhead'] .= <<< EOT
<script>$(document).ready(function() {
$("#search-text").search_autocomplete('$base/acl');
});
</script>
EOT;
$a->page['nav'] .= '<div id="panel" style="display: none;"></div>' ;
$nav_info = nav_info($a);