From 721b37c9d94d8ed5345f8d9ed50257e4b9644e57 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 Signed-off-by: Tomas Cohen Arazi --- 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 4804c87ea4..35447b72a9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -69,7 +69,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.39.5