mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 14:40:55 +03:00
focus password field when clicking password checkbox
This commit is contained in:
@@ -27,6 +27,9 @@ module.exports = function(state, emit) {
|
|||||||
.getElementById('copy')
|
.getElementById('copy')
|
||||||
.classList.toggle('wait-password', e.target.checked);
|
.classList.toggle('wait-password', e.target.checked);
|
||||||
document.getElementById('copy-btn').disabled = e.target.checked;
|
document.getElementById('copy-btn').disabled = e.target.checked;
|
||||||
|
if (e.target.checked) {
|
||||||
|
document.getElementById('unlock-input').focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setPassword(event) {
|
function setPassword(event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user