blob: 5ab1a4bb50b8f5256018baafcceabfd13ee69442 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{* this needs to go in <head>, but we don't have a way of doing that from a module yet. *}
<script src="{$smarty.const.UTIL_PKG_URL}javascript/libs/prototype.js"></script>
<script src="{$smarty.const.UTIL_PKG_URL}javascript/libs/live_search.js"></script>
<script>
var search = new LiveSearch($('search_box'), $('search_results'));
</script>
{* end of <head> section *}
{if $gBitSystem->isPackageActive( 'search' )}
{bitmodule title="$moduleTitle" name="search_new"}
{form}
<input id="search_box" type="text" name="search" value="Search..." />
<div id="search_results"></div>
{/form}
{/bitmodule}
{/if}
|