Prevent field blocking if search decitre with empty ISBN
This commit is contained in:
parent
794759a997
commit
2a98c4e8d4
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
isbnButton.addEventListener('click', function (event) {
|
isbnButton.addEventListener('click', function (event) {
|
||||||
|
if (!isbn.value) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
disableFields();
|
disableFields();
|
||||||
|
|
||||||
$.get("/isbn_api/" + isbn.value, {}, function (data, status, xhr) {
|
$.get("/isbn_api/" + isbn.value, {}, function (data, status, xhr) {
|
||||||
|
|
Loading…
Reference in a new issue