mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Fixed checkbox not working in export screen
This commit is contained in:
parent
cc8c25a283
commit
013546a45b
@ -468,6 +468,7 @@ export function createCheckboxOption(text: string, description: string, checked:
|
||||
"disabled": false,
|
||||
"name": "",
|
||||
"readOnly": false,
|
||||
"value": null,
|
||||
...options
|
||||
};
|
||||
var div = document.createElement("div");
|
||||
@ -476,10 +477,11 @@ export function createCheckboxOption(text: string, description: string, checked:
|
||||
label.title = description;
|
||||
var input = document.createElement("input");
|
||||
input.type = "checkbox";
|
||||
input.checked = checked;
|
||||
input.name = options.name;
|
||||
input.disabled = options.disabled;
|
||||
input.readOnly = options.readOnly;
|
||||
input.checked = checked;
|
||||
input.name = options.name;
|
||||
input.disabled = options.disabled;
|
||||
input.readOnly = options.readOnly;
|
||||
input.value = options.value;
|
||||
var span = document.createElement("span");
|
||||
span.innerText = text;
|
||||
label.appendChild(input);
|
||||
|
||||
@ -31,10 +31,11 @@ export abstract class UnitDataFile {
|
||||
headersHTML += `<th data-coalition="${coalition}">${coalition[0].toUpperCase() + coalition.substring(1)}</th>`;
|
||||
|
||||
const optionIsValid = this.data[category].hasOwnProperty(coalition);
|
||||
let checkboxHTML = createCheckboxOption(`${category}:${coalition}`, category, optionIsValid, () => { }, {
|
||||
let checkboxHTML = createCheckboxOption(``, category, optionIsValid, () => { }, {
|
||||
"disabled": !optionIsValid,
|
||||
"name": "category-coalition-selection",
|
||||
"readOnly": !optionIsValid
|
||||
"readOnly": !optionIsValid,
|
||||
"value" : `${category}:${coalition}`
|
||||
}).outerHTML;
|
||||
|
||||
if (optionIsValid)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user