Skip to content

Commit

Permalink
FIX: ChangePasswordField toogle method, fixes #163
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaspiening committed Nov 17, 2022
1 parent 4b52ba7 commit 66a824c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/javascript/ConfirmedPasswordField.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
var $container = $('.showOnClickContainer', $(this).parent());

$container.toggle('fast', function() {
$container.find('input[type="hidden"]').val($container.is(":visible") ? 1 : 0);
$container.toggleClass("d-none").find('input[type="hidden"]').val($container.hasClass("d-none")?0:1);
});

return false;
})
.find(".confirmedpassword .showOnClickContainer").hide();
});
})(jQuery);

0 comments on commit 66a824c

Please sign in to comment.