From 7d629854059aa4ed40e1f0c850661c1ece202543 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 --- 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 6fd708df85..a293beeaa8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -288,6 +288,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