Kaynağa Gözat

Tentatively fixed buttons/etc from being enabled when turned on in a category that is collapsed

tags/v1.0.0
Fen Dweller 6 yıl önce
ebeveyn
işleme
20ecf0e085
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: E80B35A6F11C3656
1 değiştirilmiş dosya ile 29 ekleme ve 1 silme
  1. +29
    -1
      game.js

+ 29
- 1
game.js Dosyayı Görüntüle

@@ -4273,6 +4273,35 @@ function loadPreset() {
}

function grabFormData(form, warnings, panels, buttons, stats) {

// verify that this input box is in something we enabled


let parent = form.parentElement;


while(true) {
if (parent.id == "custom-species")
{
break;
}

if (parent.classList.contains("reveal-if-active"))
{
let sib = parent.previousSibling.previousSibling;

if (!sib.checked) {
console.log("aborting " + form.id);
return;
}

}

parent = parent.parentElement;


}

if (form.hasAttribute("data-warning")) {
warnings.push(form.getAttribute("data-warning"));
}
@@ -4487,7 +4516,6 @@ function enable_victim(category) {
}

function enable_button(name) {
console.log(name);
document.getElementById("button-action-" + name).style.display = "inline";
}



Yükleniyor…
İptal
Kaydet