@@ -, +, @@ Patron Name on the left, it does the same thing. the hold for), it goes to the Top Search bar under Checkout. --- .../prog/en/modules/reserve/request.tt | 31 +++++++++++++--------- 1 file changed, 18 insertions(+), 13 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -978,9 +978,25 @@ $(document).ready(function() { [% UNLESS clubs %] - $('#circ_holds_select').tabs({active: 0}); + $('#circ_holds_select').tabs({ + active: 0, + activate: function(){ + $(this).find("input.focus").focus(); + }, + create: function(){ + $(this).find("input.focus").focus(); + } + }); [% ELSE %] - $('#circ_holds_select').tabs({active: 1}); + $('#circ_holds_select').tabs({ + active: 1, + activate: function(){ + $(this).find("input.focus").focus(); + }, + create: function(){ + $(this).find("input.focus").focus(); + } + }); [% END %] function ToggleHoldsToPlace() { if ( $("#requestany").prop('checked') ) { @@ -1261,17 +1277,6 @@ [% END %] [% END %] - if ( $(".focus").is(":visible") ) { - $(".focus").focus(); - } - - $('[href="#holds_patronsearch_pane"]').click( function() { - $('#patron').focus(); - }) - - $('[href="#holds_clubsearch_pane"]').click( function() { - $('#club').focus(); - }) }); [% END %] --