]> git.evergreen-ils.org Git - evergreen/tadl.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 18:55:45 +0000 (14:55 -0400)
commit5d1c05e4340c1050a8a8896b875e245cbd16e4e6
treeb02deb39408bd080e59a96e8b2a2225f31441676
parente729b944f959c115fe14c024cdfb5e77a92c0c47
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