Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
Respond to paste, keyup, and change (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
whaught authored Oct 2, 2020
1 parent 3eddfd7 commit 5748bae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/server/assets/login/change-password.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
$submit.prop('disabled', false);
});

$password.keyup(function() {
$password.on("change keyup paste", function() {
$submit.prop('disabled', !checkPasswordValid($password.val()));
});
$retype.keyup(function() {
$retype.on("change keyup paste", function() {
$submit.prop('disabled', !checkPasswordValid($password.val()));
});

Expand Down
4 changes: 2 additions & 2 deletions cmd/server/assets/login/select-password.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@
let $password = $('#password');
let $retype = $('#retype');

$password.keyup(function() {
$password.on("change keyup paste", function() {
$submit.prop('disabled', !checkPasswordValid($password.val()));
});
$retype.keyup(function() {
$retype.on("change keyup paste", function() {
$submit.prop('disabled', !checkPasswordValid($password.val()));
});

Expand Down

0 comments on commit 5748bae

Please sign in to comment.