Skip to content

Commit

Permalink
Merge pull request #180 from andreaspiening/issue-163
Browse files Browse the repository at this point in the history
FIX: ChangePasswordField toogle method, fixes #163
  • Loading branch information
nyeholt authored Nov 27, 2022
2 parents 4b52ba7 + 66a824c commit 2adf353
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 2adf353

Please sign in to comment.