From 83620c60d631e488ed453b255228c324ea1104b4 Mon Sep 17 00:00:00 2001 From: Dan Pearl Date: Thu, 17 Jan 2013 14:56:18 -0500 Subject: [PATCH] LP #1100914: Input focus for staff client portal should be the text box. Suggested by a librarian: Save a click by putting the initial focus of the Portal page in the search box. Previously, entering the text box would eliminate the decorative background image; now, pressing on any key while focus in the box will eliminate the text. Signed-off-by: Dan Pearl Signed-off-by: Pasi Kallinen Signed-off-by: Ben Shum --- Open-ILS/xul/staff_client/server/index.xhtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/index.xhtml b/Open-ILS/xul/staff_client/server/index.xhtml index b0ddccd4b6..324c017ba3 100644 --- a/Open-ILS/xul/staff_client/server/index.xhtml +++ b/Open-ILS/xul/staff_client/server/index.xhtml @@ -81,6 +81,7 @@ //this function will allow for the "Hello, Staff Member" messages function init() { + document.getElementById('quicksearch').focus(); SearchOnBlur(); JSAN.use('OpenILS.data'); var data = new OpenILS.data(); @@ -441,7 +442,7 @@
+ "SearchOnBlur();" onkeydown="SearchOnFocus();" />
-- 2.43.2