Drop focus after field has been filled

This commit is contained in:
Kevin Velghe 2016-07-26 21:24:20 +02:00
parent e9e780ac56
commit 8d091b2ae8

View File

@ -342,12 +342,14 @@ cat <<EOF
for (var j = 0; j < inputs.length; j++) {
var input = inputs[j];
if (input.type == "text" || input.type == "email") {
input.focus();
input.focus();
input.value = "$(javascript_escape "${username}")";
input.blur();
}
if (input.type == "password") {
input.focus();
input.focus();
input.value = "$(javascript_escape "${password}")";
input.blur();
}
}
};