View | Details | Raw Unified | Return to bug 37836
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt (-1 / +27 lines)
Lines 281-286 Link Here
281
                }
281
                }
282
            }
282
            }
283
        }
283
        }
284
285
286
        function checkBarcodeInput() {
287
            var inputField = document.getElementById("barcode_input");
288
            var button = document.getElementById("sci_append_button");
289
290
            if (inputField.value.trim() === "") {
291
                button.disabled = true;
292
            } else {
293
                button.disabled = false;
294
            }
295
        }
296
297
checkBarcodeInput();
298
299
document.getElementById("barcode_input").addEventListener("input", checkBarcodeInput);
300
301
document.getElementById("sci_append_button").addEventListener("click", function() {
302
    setTimeout(checkBarcodeInput, 10);
303
});
304
305
306
307
308
309
310
284
    </script>
311
    </script>
285
312
286
    [% IF ( Koha.Preference('SelfCheckInUserJS') ) %]
313
    [% IF ( Koha.Preference('SelfCheckInUserJS') ) %]
287
- 

Return to bug 37836