Bugzilla – Attachment 144642 Details for
Bug 32420
Set focus for cursor to barcode input box in batch item modification
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32420: Set focus for cursor to barcode input box in batch item modification
Bug-32420-Set-focus-for-cursor-to-barcode-input-bo.patch (text/plain), 1.46 KB, created by
Paul Derscheid
on 2022-12-16 10:28:34 UTC
(
hide
)
Description:
Bug 32420: Set focus for cursor to barcode input box in batch item modification
Filename:
MIME Type:
Creator:
Paul Derscheid
Created:
2022-12-16 10:28:34 UTC
Size:
1.46 KB
patch
obsolete
>From ef3081ce265749da61976329db40aa51cb975ae8 Mon Sep 17 00:00:00 2001 >From: LMSCloudPaulD <paul.derscheid@lmscloud.de> >Date: Fri, 16 Dec 2022 11:20:45 +0100 >Subject: [PATCH] Bug 32420: Set focus for cursor to barcode input box in batch > item modification > >This should do it. Don't know whether it's compatible with the JS guidelines in the wiki. >But I don't know whether it makes that much sense to move this block to >one of the included scripts. > >To test: >1. Go to Cataloging > Batch item modification > --> The barcodelist input field is now selected by default in >the 'batch item modification' as well as the 'batch item deletion' view. > >https://bugs.koha-community.org/show_bug.cgi?id=32418 >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt >index e3d80a0a63..11093bd3e9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt >@@ -97,4 +97,12 @@ > </div> <!-- /.col-sm-2.col-sm-pull-10 --> > </div> <!-- /.row --> > >+[% MACRO jsinclude BLOCK %] >+ <script> >+ $(document).ready(function() { >+ var barcodelist = document.getElementById('barcodelist'); >+ barcodelist.focus(); >+ }); >+ </script> >+[% END %] > [% INCLUDE 'intranet-bottom.inc' %] >-- >2.37.1 (Apple Git-137.1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32420
:
144642
|
144694
|
164866