From 2ca71d09f9b616c7376219d926d9ba63554844c2 Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Tue, 2 May 2017 12:03:09 +0000 Subject: [PATCH] Bug 18438 - Amended implementation of focus on barcode input box when the modal box is closed. --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 3abda33..d4f8652 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -52,6 +52,8 @@ $(document).ready(function () { $("#barcode").prop("disabled", false).focus(); }); + $(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); }); + [% IF print_slip %] Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]'); [% END %] -- 2.1.4