From 621a5e3f0057cf4ecad28bb5b9fef318f7cc9437 Mon Sep 17 00:00:00 2001 From: ava li Date: Tue, 19 Jan 2021 01:36:27 +0000 Subject: [PATCH] Bug 27355: 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 --- 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 535d2e5c6b..48333158fb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -243,6 +243,8 @@ 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.11.0