mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 01:05:32 +00:00
BUGFIX in JS
This commit is contained in:
@@ -5,7 +5,7 @@ const startup_index = function (AvailableLetters, AvailablePages) {
|
||||
let f = filter.value;
|
||||
let gotoinfo = document.getElementById("ha-gotoinfo");
|
||||
|
||||
if (f === "") {
|
||||
if (!f) {
|
||||
if (gotoinfo != null && !gotoinfo.classList.contains("opacity-0")) gotoinfo.classList.add("opacity-0");
|
||||
button.disabled = true;
|
||||
return;
|
||||
@@ -29,7 +29,7 @@ const startup_index = function (AvailableLetters, AvailablePages) {
|
||||
let pg = page.value;
|
||||
let gotoinfo = document.getElementById("ha-zhsearchinfo");
|
||||
|
||||
if (pg === "") {
|
||||
if (!pg) {
|
||||
if (gotoinfo != null && !gotoinfo.classList.contains("opacity-0")) gotoinfo.classList.add("opacity-0");
|
||||
button.disabled = true;
|
||||
return;
|
||||
@@ -56,7 +56,7 @@ const startup_index = function (AvailableLetters, AvailablePages) {
|
||||
|
||||
const ACTIVATESEARCHFILTER = function (filter, button) {
|
||||
let f = filter.value;
|
||||
if (f === "") {
|
||||
if (!f) {
|
||||
button.disabled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ const startup_search = function () {
|
||||
|
||||
const ACTIVATESEARCHFILTER = function (filter, button) {
|
||||
let f = filter.value;
|
||||
if (f === "") {
|
||||
if (!f || !button) {
|
||||
button.disabled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user