mirror of
https://github.com/Doodle3D/doodle3d-connect.git
synced 2024-12-26 02:23:48 +01:00
Focus password field after changing type
This commit is contained in:
parent
9b06139f85
commit
3d6cd67616
@ -6,7 +6,10 @@
|
|||||||
var $input = $(this);
|
var $input = $(this);
|
||||||
var $checkbox = $($input.data('typetoggle'));
|
var $checkbox = $($input.data('typetoggle'));
|
||||||
|
|
||||||
$checkbox.change(updateType);
|
$checkbox.change(function() {
|
||||||
|
updateType();
|
||||||
|
$input.focus();
|
||||||
|
});
|
||||||
updateType();
|
updateType();
|
||||||
function updateType() {
|
function updateType() {
|
||||||
$input[0].type = $checkbox.is(':checked') ? 'text' : 'password';
|
$input[0].type = $checkbox.is(':checked') ? 'text' : 'password';
|
||||||
|
Loading…
Reference in New Issue
Block a user