From 64b457925cd47b58ed9962f43decbafe32a2dbfe Mon Sep 17 00:00:00 2001 From: ava li Date: Tue, 19 Jan 2021 01:36:27 +0000 Subject: [PATCH] Bug 27455: Add focus to branch code when a new library is added TEST PLAN: From the koha home, go to administration, go to Libraries which is under Basic parameters. Click +New library the focus should go to the first field of the form (library/branch code) the patch has worked. https://bugs.koha-community.org/show_bug.cgi?id=27455 Signed-off-by: Sally Signed-off-by: Kyle M Hall Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt index f3d15e1d22..c04ec9a4bc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -327,6 +327,8 @@ Libraries › Administration › Koha var columns_settings = [% TablesSettings.GetColumns( 'admin', 'libraries', 'libraries', 'json' ) | $raw %]; $(document).ready(function() { + $("#branchcode").focus(); + var libraries_url = '/api/v1/libraries'; var libraries = $("#libraries").api({ "ajax": { -- 2.39.5