summaryrefslogtreecommitdiffstats
path: root/core/js/publicshareauth.js
blob: af0619545064de8d7749bdb748785167bd3f6901 (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
});