Bug 14011: Make the jQuery selector explicit
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 20 Apr 2015 13:13:44 +0000 (15:13 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 4 May 2015 14:43:59 +0000 (11:43 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt

index 4804c87..35447b7 100644 (file)
@@ -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(); }