From 66a824c5bd2386e5df1cb024524c2551b3113b34 Mon Sep 17 00:00:00 2001 From: Andreas Piening Date: Fri, 18 Nov 2022 11:06:40 +1300 Subject: [PATCH] FIX: ChangePasswordField toogle method, fixes #163 --- client/javascript/ConfirmedPasswordField.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/javascript/ConfirmedPasswordField.js b/client/javascript/ConfirmedPasswordField.js index ff0aa0bd..75090995 100644 --- a/client/javascript/ConfirmedPasswordField.js +++ b/client/javascript/ConfirmedPasswordField.js @@ -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);