Prevent field blocking if search decitre with empty ISBN

This commit is contained in:
Gabriel Augendre 2019-06-08 17:16:27 +02:00
parent 794759a997
commit 2a98c4e8d4

View file

@ -39,6 +39,9 @@ document.addEventListener("DOMContentLoaded", function (event) {
}
isbnButton.addEventListener('click', function (event) {
if (!isbn.value) {
return;
}
disableFields();
$.get("/isbn_api/" + isbn.value, {}, function (data, status, xhr) {