Move autofocus cursor in basic search to end of value user/bshum/basic-search-autofocus
authorBen Shum <bshum@biblio.org>
Mon, 13 Oct 2014 05:57:16 +0000 (01:57 -0400)
committerBen Shum <bshum@biblio.org>
Mon, 13 Oct 2014 06:05:30 +0000 (02:05 -0400)
commitfc48ea9215474d136f66e31e4cb5811308be7552
tree656f108af5abe97ac8f65a36a1d55b1a59b07f98
parent18ef1cef2adb0beffe1758690bc8afc8e1189917
Move autofocus cursor in basic search to end of value

After inserting the search terms for a basic search and initiating the search,
the page focuses the cursor on the search box but usually puts the cursor at
the beginning of the value (to the left of text) instead of at the end of the
search terms (to the right of text).  This forces users to delete from the left
instead of using the backspace to delete from the right.

Setting an onfocus puts the cursor where one might expect it.

Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/searchbar.tt2