@@ -, +, @@ with 'barcode submitted' - Log into staff client - Find a client with 0 checkouts - Print a slip (or cancel printing it) - Attempt to type in a barcode to checkout -- annoying modal screen pops up 'barcode submitted' message will be triggered each time you try - apply patch - try to reproduce issue --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -64,13 +64,14 @@ function toggle_onsite_checkout(){ $(document).ready(function() { $('#mainform').on('submit',function() { - $('#barcode').on('keypress',function(event) { - $('#barcodeSubmittedModal').modal(); - event.preventDefault(); } - ); + if (barcode && barcode.value) { + $('#barcode').on('keypress',function(event) { + $('#barcodeSubmittedModal').modal(); + event.preventDefault(); } + ); + } }); - [% IF !( CircAutoPrintQuickSlip == 'clear' ) %] // listen submit to trigger qslip on empty checkout $('#mainform').bind('submit',function() { --