LP#1862235 - Create MARC Record - Focus on template on load
authorJosh Stompro <stompro@stompro.org>
Mon, 10 Feb 2020 14:35:31 +0000 (08:35 -0600)
committerJosh Stompro <stompro@stompro.org>
Mon, 10 Feb 2020 14:35:31 +0000 (08:35 -0600)
commit5e0f78ad8d515bf626b3d8b565f3277c80621203
tree2e5b0acfa10b9d3713a2128cca108fdcbc34ca62
parent2b769c12cfd10e2aa4e8d77c061dbf6a3f8799cc
LP#1862235 - Create MARC Record - Focus on template on load

Focus on the template selector dropdown when interface loads.

This removes the need to use the mouse, and speeds up using the
interface.  Pressing tab, then enter will submit
the form with the default template selected.

If the template needs to be changed, then pressing the first letter
of the template will switch between the different options.

This adds a directive named autoFocus to staff/cat/catalog/app.js,
so adding "auto-focus" to an element will cause that element
to have focus on load.

Signed-off-by: Josh Stompro <stompro@stompro.org>
Open-ILS/src/templates/staff/cat/catalog/t_new_bib.tt2
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js