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.
---
 .../prog/en/modules/circ/circulation.tmpl          |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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 681092f..4b0b5df 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'
 });
+<!-- 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'];
-- 
1.5.6.5

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to