Bug 42439: Remove event attributes from label-edit-batch.tt

This patch removes an "onload" event attribute from the label batch edit
template. An "onload" event attribute on the body tag can be easily
moved to the $(document).ready block.

To test, apply the patch and go to Cataloging -> Label creator -> Label
batches -> New label batch. As soon as the page loads the "Add by
barcodes" textarea should get focus.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2026-04-22 08:57:27 -04:00 committed by Lucas Gass
parent 3160983a6d
commit b8832e7d7e
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="labels_label-edit-batch" class="tools labels" onload="dofocus();">
<body id="labels_label-edit-batch" class="tools labels">
[% WRAPPER 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
[% END %]
@ -326,6 +326,7 @@
}
$(document).ready(function () {
dofocus();
$('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
if (has_entries) {
$("#description").show();