nextcloud/core/js/publicshareauth.js
Joas Schilling dd919668cb
No more jQuery
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-06 20:41:42 +01:00

12 rader
460 B
JavaScript

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);
});