mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
Fix for issue #28: Update method of setting value for fields
This commit is contained in:
parent
121d2b4bcd
commit
ff4d353d9b
1 changed files with 3 additions and 3 deletions
|
|
@ -276,7 +276,7 @@ class MicronParser {
|
|||
let input = document.createElement("input");
|
||||
input.type = p.masked ? "password" : "text";
|
||||
input.name = p.name;
|
||||
input.value = p.data;
|
||||
input.setAttribute('value', p.data);
|
||||
if (p.width) {
|
||||
input.size = p.width;
|
||||
}
|
||||
|
|
@ -288,7 +288,7 @@ class MicronParser {
|
|||
cb.type = "checkbox";
|
||||
cb.name = p.name;
|
||||
cb.value = p.value;
|
||||
if (p.prechecked) cb.checked = true;
|
||||
if (p.prechecked) cb.setAttribute('checked', true);
|
||||
label.appendChild(cb);
|
||||
label.appendChild(document.createTextNode(" " + p.label));
|
||||
this.applyStyleToElement(label, this.styleFromState(p.style));
|
||||
|
|
@ -299,7 +299,7 @@ class MicronParser {
|
|||
rb.type = "radio";
|
||||
rb.name = p.name;
|
||||
rb.value = p.value;
|
||||
if (p.prechecked) rb.checked = true;
|
||||
if (p.prechecked) rb.setAttribute('checked', true);
|
||||
label.appendChild(rb);
|
||||
label.appendChild(document.createTextNode(" " + p.label));
|
||||
this.applyStyleToElement(label, this.styleFromState(p.style));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue