From: Owen Leonard Date: Sat, 4 Apr 2009 15:19:33 +0000 (-0500) Subject: Another try at fixing Bug 2949. X-Git-Tag: v3.00.02-stable~212 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=54b4f44df923ce638d682cc33cac3656a43e66c7;p=koha.git Another try at fixing Bug 2949. This fix is in circulation.tmpl instead of the search box include. That eliminates the clash with returns.pl. Focus works correctly when checking out, when circulation.pl is at its "empty" state, and when patron selection form is displayed. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index 79fb642af5..9fc246faeb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -15,6 +15,7 @@ $.tablesorter.addParser({ format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, type: 'text' }); +window.onload=function(){ $('#findborrower').focus(); }; $(document).ready(function() { $('#patronlists > ul').tabs(); $.tablesorter.defaults.widgets = ['zebra'];