summaryrefslogtreecommitdiffstats
path: root/web/html/index.php
diff options
context:
space:
mode:
authorMarcel Korpel <marcel.lists@gmail.com>2012-12-23 22:23:45 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2013-01-19 12:17:55 +0100
commitb004333eadb9a4db57592bb501b28edced708943 (patch)
treeb4e54f9e6f5bd44f2f1089d9aa1f27d78e9d8c08 /web/html/index.php
parentb8f07c4c45a27fddb7f2a9c1d88b57ec9d4f2267 (diff)
downloadaur-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.php4
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";