Suggested by a librarian:
Save a click by putting the initial focus of the Portal page in the search box.
Previously, entering the text box would eliminate the decorative background image;
now, pressing on any key while focus in the box will eliminate the text.
Signed-off-by: Dan Pearl <dpearl@cwmars.org>
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Ben Shum <bshum@biblio.org>
//this function will allow for the "Hello, Staff Member" messages
function init() {
+ document.getElementById('quicksearch').focus();
SearchOnBlur();
JSAN.use('OpenILS.data');
var data = new OpenILS.data();
<td colspan="2" rowspan="1">
<form action="#" onsubmit="return SearchOnSubmit();">
<input id="quicksearch" onfocus="SearchOnFocus();" onblur=
- "SearchOnBlur();" /> <input value="Search" type="submit" />
+ "SearchOnBlur();" onkeydown="SearchOnFocus();" /> <input value="Search" type="submit" />
</form>
</td>
</tr>