diff options
author | 0neGal <mail@0negal.com> | 2024-01-24 17:29:39 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2024-01-24 17:29:39 +0100 |
commit | 23d5018310caf06007bd4b60af1f78614244af25 (patch) | |
tree | cccc1b8bcf12c4ea99de340ce32816ef92e8669f /src/app/js | |
parent | 4f8ecfd776dccc10d09205ed50de8bf0217f7ebf (diff) | |
download | Viper-23d5018310caf06007bd4b60af1f78614244af25.tar.gz Viper-23d5018310caf06007bd4b60af1f78614244af25.zip |
fixed settings categories staying closed
When closing a category and then re-opening the setting popup, the
categories shouldn't remain closed!
Diffstat (limited to 'src/app/js')
-rw-r--r-- | src/app/js/settings.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app/js/settings.js b/src/app/js/settings.js index 78a951e..57d542a 100644 --- a/src/app/js/settings.js +++ b/src/app/js/settings.js @@ -36,6 +36,12 @@ var Settings = { return opts; }, load: () => { + // re-opens any closed categories + let categories = document.querySelectorAll("#options details"); + for (let i = 0; i < categories.length; i++) { + categories[i].setAttribute("open", true); + } + let options = document.querySelectorAll(".option"); for (let i = 0; i < options.length; i++) { |