Browse Source

Clear groups when resetting the character sheet

tags/v1.1.2
Fen Dweller 5 years ago
parent
commit
533099a7de
No known key found for this signature in database GPG Key ID: E80B35A6F11C3656
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      game.js

+ 1
- 1
game.js View File

@@ -4826,6 +4826,7 @@ function grow_stench(factor, simpleCalc=true){


function resetSettings() { function resetSettings() {
document.forms.namedItem("custom-species-form").reset(); document.forms.namedItem("custom-species-form").reset();
reset_visible_groups();
updateAllPreviews(); updateAllPreviews();
} }


@@ -5596,7 +5597,6 @@ function update_visible_groups() {


groups.forEach(group => { groups.forEach(group => {
const state = document.querySelector("#group-toggle-" + group).checked; const state = document.querySelector("#group-toggle-" + group).checked;
console.log(state);
document.querySelectorAll(".sheet-group-" + group).forEach(category => { document.querySelectorAll(".sheet-group-" + group).forEach(category => {
if (state) if (state)
category.style.display = ""; category.style.display = "";


Loading…
Cancel
Save