diff options
author | David Sferruzza <david.sferruzza@gmail.com> | 2013-03-10 18:24:05 +0100 |
---|---|---|
committer | David Sferruzza <david.sferruzza@gmail.com> | 2013-03-10 18:24:05 +0100 |
commit | 1b647ff409d336c7e6f7e19baf423d8b7ccb7e05 (patch) | |
tree | fd318bc8c28da0f8dce0a8dcc69d57f5a9f45cf8 /tpl/page.footer.html | |
parent | 310f3ca0079a03eaa627f94b65486e4547aeb3d9 (diff) | |
download | Shaarli-1b647ff409d336c7e6f7e19baf423d8b7ccb7e05.tar.gz Shaarli-1b647ff409d336c7e6f7e19baf423d8b7ccb7e05.tar.zst Shaarli-1b647ff409d336c7e6f7e19baf423d8b7ccb7e05.zip |
Highlight search results (issue #4)
Uses http://bartaz.github.com/sandbox.js/jquery.highlight.html
Diffstat (limited to 'tpl/page.footer.html')
-rw-r--r-- | tpl/page.footer.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tpl/page.footer.html b/tpl/page.footer.html index 13b566ae..c3d7b0b8 100644 --- a/tpl/page.footer.html +++ b/tpl/page.footer.html | |||
@@ -18,3 +18,13 @@ $(document).ready(function() | |||
18 | }); | 18 | }); |
19 | </script> | 19 | </script> |
20 | {/if} | 20 | {/if} |
21 | |||
22 | {if="empty($GLOBALS['disablejquery']) && isset($_GET['searchterm'])"} | ||
23 | <script src="inc/jquery.highlight.js#"></script> | ||
24 | <script language="JavaScript"> | ||
25 | $(document).ready(function() | ||
26 | { | ||
27 | $('#linklist').highlight("{$search_crits}"); | ||
28 | }); | ||
29 | </script> | ||
30 | {/if} \ No newline at end of file | ||