|
@@ -8,7 +8,7 @@ function LoginForm(parent, open) {
|
|
this.getValue = function () {
|
|
this.getValue = function () {
|
|
return this.input.value;
|
|
return this.input.value;
|
|
}
|
|
}
|
|
- this.input.onchange = function () {
|
|
|
|
|
|
+ this.input.oninput = this.input.onchange = function () {
|
|
if (this.onChange)
|
|
if (this.onChange)
|
|
this.onChange(this.getValue());
|
|
this.onChange(this.getValue());
|
|
}.bind(this);
|
|
}.bind(this);
|
|
@@ -22,7 +22,7 @@ function LoginForm(parent, open) {
|
|
this.getValue = function () {
|
|
this.getValue = function () {
|
|
return this.input.value;
|
|
return this.input.value;
|
|
}
|
|
}
|
|
- this.input.onchange = function () {
|
|
|
|
|
|
+ this.input.oninput = this.input.onchange = function () {
|
|
if (this.onChange)
|
|
if (this.onChange)
|
|
this.onChange(this.getValue());
|
|
this.onChange(this.getValue());
|
|
}.bind(this);
|
|
}.bind(this);
|
|
@@ -45,6 +45,7 @@ function LoginForm(parent, open) {
|
|
check.checked = open;
|
|
check.checked = open;
|
|
check.value = "open";
|
|
check.value = "open";
|
|
check.type = "checkbox";
|
|
check.type = "checkbox";
|
|
|
|
+ this.setOpen(open);
|
|
}
|
|
}
|
|
|
|
|
|
let form = document.createElement("form");
|
|
let form = document.createElement("form");
|
|
@@ -53,6 +54,8 @@ function LoginForm(parent, open) {
|
|
this.password = new Password(form, open);
|
|
this.password = new Password(form, open);
|
|
this.button = document.createElement("button");
|
|
this.button = document.createElement("button");
|
|
this.button.innerText = "OK";
|
|
this.button.innerText = "OK";
|
|
|
|
+ this.button.classList.add('btn');
|
|
|
|
+ this.button.classList.add('ref-button');
|
|
form.append(this.button);
|
|
form.append(this.button);
|
|
|
|
|
|
let setButtonStateCallback = function setButtonState() {
|
|
let setButtonStateCallback = function setButtonState() {
|