From 161feda3dda4a8d11872757a84f829934cce0a8e 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 Signed-off-by: Joy Nelson --- .../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 bacc5225f5..efb30f9243 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -1247,6 +1247,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