TPAC: Set autofocus appropriately for different contexts user/dbs/lp1003738
authorDan Scott <dscott@laurentian.ca>
Thu, 12 Jul 2012 23:12:06 +0000 (19:12 -0400)
committerDan Scott <dscott@laurentian.ca>
Fri, 13 Jul 2012 01:39:19 +0000 (21:39 -0400)
commit71f7e64a51911eb8ed5f6c4851ef413c2ee9be39
treea66bd04987ced8bd64e92a660b84fd0b1373461b
parenta54cd9c3c0a50887561eb7633efc12fb22ca322d
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>
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