]> git.evergreen-ils.org Git - working/Evergreen.git/commit
TPAC: Set autofocus appropriately for different contexts
authorDan Scott <dscott@laurentian.ca>
Thu, 12 Jul 2012 23:12:06 +0000 (19:12 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 23 Jul 2012 15:20:28 +0000 (11:20 -0400)
commite382960d71558c9453f008160b684aa00d6f7210
treee4f99095bf158acc7f4914c86ce45920416cc7af
parentfc6469fcb532709e595e0746aeaa6ff2f2fa0beb
TPAC: Set autofocus appropriately for different contexts

At login, the basic search bar was fighting (and winning) for the
default focus rather than the username field. Additionally, in the
advanced search pages, no field was getting focus. Therefore, check to
see if we expect to be in a context where it makes sense to set the
default focus to the basic search input field; otherwise, set the focus
to the login username field or the appropriate advanced search field.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/templates/opac/login.tt2
Open-ILS/src/templates/opac/parts/advanced/expert.tt2
Open-ILS/src/templates/opac/parts/advanced/global_row.tt2
Open-ILS/src/templates/opac/parts/advanced/numeric.tt2
Open-ILS/src/templates/opac/parts/js.tt2
Open-ILS/src/templates/opac/parts/login/form.tt2
Open-ILS/src/templates/opac/parts/searchbar.tt2
Open-ILS/src/templates/opac/record.tt2