From fe46b0151976328bbee0399696c6013d0b7981b6 Mon Sep 17 00:00:00 2001 From: Gordian Edenhofer Date: Wed, 27 May 2015 12:17:15 +0200 Subject: 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 Signed-off-by: Lukas Fleischer --- web/html/login.php | 2 +- web/template/pkg_search_form.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/html/login.php b/web/html/login.php index 94da559..f898a57 100644 --- a/web/html/login.php +++ b/web/html/login.php @@ -29,7 +29,7 @@ html_header('AUR ' . __("Login"));

- +

diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php index b4b88bd..683675b 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);

- " maxlength='35' /> + " maxlength='35' autofocus="autofocus" />
-- cgit v1.2.3-70-g09d2