From a8e2249ca180a3e7a8e94ec0687833ed6221be27 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 24 Jan 2020 15:34:07 +0000 Subject: [PATCH] Bug 24510: Add focus to Patron/club input Signed-off-by: Kelly McElligott Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- .../intranet-tmpl/prog/en/modules/reserve/request.tt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 3ee726cf7e..8b09503058 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -1258,6 +1258,17 @@ [% 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 %] -- 2.39.5