mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 23:40:11 +02:00
fix breakage I made to snapshot uploading
This commit is contained in:
parent
1b62332058
commit
afe376a0a2
1 changed files with 2 additions and 1 deletions
|
@ -56,12 +56,13 @@
|
||||||
function toggle() { data.share = input.checked; }
|
function toggle() { data.share = input.checked; }
|
||||||
img.src = data.localPath;
|
img.src = data.localPath;
|
||||||
div.appendChild(img);
|
div.appendChild(img);
|
||||||
|
data.share = true;
|
||||||
if (useCheckboxes) { // I'd rather use css, but the included stylesheet is quite particular.
|
if (useCheckboxes) { // I'd rather use css, but the included stylesheet is quite particular.
|
||||||
// Our stylesheet(?) requires input.id to match label.for. Otherwise input doesn't display the check state.
|
// Our stylesheet(?) requires input.id to match label.for. Otherwise input doesn't display the check state.
|
||||||
label.setAttribute('for', id); // cannot do label.for =
|
label.setAttribute('for', id); // cannot do label.for =
|
||||||
input.id = id;
|
input.id = id;
|
||||||
input.type = "checkbox";
|
input.type = "checkbox";
|
||||||
input.checked = data.share = true;
|
input.checked = true;
|
||||||
input.addEventListener('change', toggle);
|
input.addEventListener('change', toggle);
|
||||||
div.class = "property checkbox";
|
div.class = "property checkbox";
|
||||||
div.appendChild(input);
|
div.appendChild(input);
|
||||||
|
|
Loading…
Reference in a new issue