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 <sally.healey@cheshiresharedservices.gov.uk>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
ava li 2021-01-19 01:36:27 +00:00 committed by Jonathan Druart
parent b7a199ffe7
commit 64b457925c
1 changed files with 2 additions and 0 deletions

View File

@ -327,6 +327,8 @@ Libraries &rsaquo; Administration &rsaquo; 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": {