summaryrefslogtreecommitdiffstats
path: root/web/template/pkg_search_form.php
diff options
context:
space:
mode:
authorGordian Edenhofer <gordian.edenhofer@gmail.com>2015-05-27 12:17:15 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-12 00:12:14 +0200
commitfe46b0151976328bbee0399696c6013d0b7981b6 (patch)
treebf02d8adad89a79b911adea74a0b7a415cc1e466 /web/template/pkg_search_form.php
parent3e75d9bb34d7e1d81911ff54ca30aa496f8523a6 (diff)
downloadaur-fe46b0151976328bbee0399696c6013d0b7981b6.tar.gz
aur-fe46b0151976328bbee0399696c6013d0b7981b6.tar.xz
Autofocus input fields at login and package-search
At the login and the package search page, the user is promted to provide some input. Until now it was neccessary to first click the field in which the input should be placed. This can be simplified with HTML5 using the autofocus attribute of the input element, though not included in XHTML 1.0, the attribute was at least given a value to comply with the standard. Signed-off-by: Gordian Edenhofer <gordian.edenhofer@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/template/pkg_search_form.php')
-rw-r--r--web/template/pkg_search_form.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php
index b4b88bd3..683675b1 100644
--- a/web/template/pkg_search_form.php
+++ b/web/template/pkg_search_form.php
@@ -71,7 +71,7 @@ $per_page = array(50, 100, 250);
</div>
<div>
<label for="id_q"><?= __("Keywords"); ?></label>
- <input type='text' name='K' size='30' value="<?php if (isset($_REQUEST["K"])) { print stripslashes(trim(htmlspecialchars($_REQUEST["K"], ENT_QUOTES))); } ?>" maxlength='35' />
+ <input type='text' name='K' size='30' value="<?php if (isset($_REQUEST["K"])) { print stripslashes(trim(htmlspecialchars($_REQUEST["K"], ENT_QUOTES))); } ?>" maxlength='35' autofocus="autofocus" />
</div>
<div>
<label for="id_out_of_date"><?= __('Out of Date'); ?></label>