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:
parent
3160983a6d
commit
b8832e7d7e
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue