Another try at fixing Bug 2949.
authorOwen Leonard <oleonard@myacpl.org>
Sat, 4 Apr 2009 15:19:33 +0000 (10:19 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Sun, 5 Apr 2009 16:48:28 +0000 (11:48 -0500)
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 <galen.charlton@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl

index 681092f..4b0b5df 100644 (file)
@@ -15,6 +15,7 @@ $.tablesorter.addParser({
     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
     type: 'text'
 });
+<!-- TMPL_UNLESS NAME="borrowernumber" --><!-- TMPL_UNLESS NAME="CGIselectborrower" -->window.onload=function(){ $('#findborrower').focus(); };<!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS -->
         $(document).ready(function() {
                $('#patronlists > ul').tabs();
                $.tablesorter.defaults.widgets = ['zebra'];