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 |
- |
|
|