mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Fixed boolean arg checkboxes
This commit is contained in:
parent
4147ec719b
commit
ab9bc7e390
3 changed files with 22 additions and 17 deletions
|
@ -105,15 +105,15 @@ class HTMLIngredient {
|
|||
case "boolean":
|
||||
html += `<div class="form-group inline">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"
|
||||
class="arg"
|
||||
id="${this.id}"
|
||||
arg-name="${this.name}"
|
||||
${this.value ? " checked='checked' " : ""}
|
||||
${this.disabled ? " disabled='disabled'" : ""}
|
||||
value="${this.name}"> ${this.name}
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox"
|
||||
class="arg"
|
||||
id="${this.id}"
|
||||
arg-name="${this.name}"
|
||||
${this.value ? " checked" : ""}
|
||||
${this.disabled ? " disabled" : ""}
|
||||
value="${this.name}"> ${this.name}
|
||||
</label>
|
||||
</div>
|
||||
</div>`;
|
||||
break;
|
||||
|
@ -243,6 +243,8 @@ class HTMLIngredient {
|
|||
input = link.parentNode.parentNode.parentNode.querySelector("input");
|
||||
|
||||
input.value = link.getAttribute("value");
|
||||
const evt = new Event("change");
|
||||
input.dispatchEvent(evt);
|
||||
|
||||
this.manager.recipe.ingChange();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue