From 85b2f71306cfb8016f93573319d95975768b69b8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 20 Apr 2015 15:13:44 +0200 Subject: [PATCH] Bug 14011: Make the jQuery selector explicit Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index 0369361..543b391 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -64,7 +64,7 @@ function toggle_onsite_checkout(){ $(document).ready(function() { $('#mainform').on('submit',function() { - if (barcode && barcode.value) { + if ($("#barcode") && $("#barcode").val()) { $('#barcode').on('keypress',function(event) { $('#barcodeSubmittedModal').modal(); event.preventDefault(); } -- 2.1.0