diff options
author | Marcel Korpel <marcel.lists@gmail.com> | 2012-12-23 22:23:45 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2013-01-19 12:17:55 +0100 |
commit | b004333eadb9a4db57592bb501b28edced708943 (patch) | |
tree | b4e54f9e6f5bd44f2f1089d9aa1f27d78e9d8c08 /web/html/index.php | |
parent | b8f07c4c45a27fddb7f2a9c1d88b57ec9d4f2267 (diff) | |
download | aur-b004333eadb9a4db57592bb501b28edced708943.tar.gz aur-b004333eadb9a4db57592bb501b28edced708943.tar.xz |
Implemented typeahead suggest
Use Twitter Bootstrap JavaScript framework for typeahead support.
Add a new "suggest" JSON method, which returns the first 20
packages that match the beginning characters of a query.
canyonknight: Link format change, commit message
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/index.php')
-rw-r--r-- | web/html/index.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/html/index.php b/web/html/index.php index a197d0bc..c51f409c 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -118,6 +118,10 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) { header("Content-Type: image/png"); include "./$path"; break; + case "/js/bootstrap-typeahead.js": + header("Content-Type: application/javascript"); + include "./$path"; + break; default: header("HTTP/1.0 404 Not Found"); include "./404.php"; |