Skip to content

Commit

Permalink
Merge pull request #110 from Mobica/228-options-button-refresh
Browse files Browse the repository at this point in the history
228 options button refresh
  • Loading branch information
Krzysztof-Bak-Mobica authored Feb 23, 2024
2 parents 2b4d918 + b5440d4 commit 36cb642
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/wasm/html/js/innoextract.misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,13 +508,14 @@ function uncollapse(id, button) {
hideOverflow();
}

function openOptsIfChecked() {
function clearOpts() {
var opts = document.getElementsByClassName("form-check-input");
var collapsible = document.getElementById("collapseOpts");

Array.from(opts).forEach((opt) => {
if (opt.checked) {
collapsible.classList.add("show");
opt.checked = false;
collapsible.classList.remove("show");
}
});
}
Expand Down Expand Up @@ -633,7 +634,7 @@ function dragHandler(event) {

setThemeText();
mutateLogsButton();
openOptsIfChecked();
clearOpts();
updateFooter();
if (!window.isSecureContext) {
nonSecure.style.display = "unset";
Expand Down

0 comments on commit 36cb642

Please sign in to comment.