Bug 37761: Add focus on patron search when on the tab

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 4fb4b7527e)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2024-11-16 08:14:52 +01:00 committed by Paul Derscheid
parent 6043a37c65
commit 05ad9af434
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 4 additions and 0 deletions

View File

@ -527,6 +527,10 @@
$('#find-patron').focus();
});
[% IF tab == 'schedule-pickup_panel' %]
$('#find-patron').focus();
[% END %]
const pickup_date = document.querySelector("#pickup_date");
if ( pickup_date ) {
const fp = pickup_date._flatpickr;