summaryrefslogtreecommitdiff
path: root/scripts/gui
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gui')
-rw-r--r--scripts/gui/input.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/gui/input.js b/scripts/gui/input.js
index 24450f0..45f145f 100644
--- a/scripts/gui/input.js
+++ b/scripts/gui/input.js
@@ -51,7 +51,7 @@ class MakeInput {
static buttonInput (text)
{
let el = MakeInput.createInput("button", false, false);
- el.textContent = text;
+ el.value = text;
return el;
}
@@ -333,8 +333,10 @@ class Settings extends EventTarget {
{
let out = {};
- for(let key in this.settings)
- out[key] = this.settings[key].el.getValue();
+ for(let key in this.settings) {
+ if (this.settings[key].el.getAttribute("type") != "button")
+ out[key] = this.settings[key].el.getValue();
+ }
return out;
}