2020-01-14 20:59:18 +03:00
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
var passwordInput = document.getElementById('password');
|
|
|
|
var passwordButton = document.getElementById('password-submit');
|
|
|
|
var eventListener = function() {
|
|
|
|
passwordButton.disabled = passwordInput.value.length === 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
passwordInput.addEventListener('click', eventListener);
|
|
|
|
passwordInput.addEventListener('keyup', eventListener);
|
|
|
|
passwordInput.addEventListener('change', eventListener);
|
2016-03-08 01:55:35 +03:00
|
|
|
});
|