BUGFIX: Fix JS bug that was preventing passwords from being changed in 'hidden by default' ConfirmedPasswordField instances.

This commit is contained in:
Sam Minnee 2012-06-06 17:53:16 +12:00
parent b4fb174809
commit da915a4889

View File

@ -1,6 +1,11 @@
(function ($) { (function ($) {
$('.confirmedpassword .showOnClick a').live('click', function () { $('.confirmedpassword .showOnClick a').live('click', function () {
$('.showOnClickContainer', $(this).parent()).toggle('fast'); var $container = $('.showOnClickContainer', $(this).parent());
$container.toggle('fast', function() {
$container.find('input[type="hidden"]').val($container.is(":visible") ? 1 : 0);
});
return false; return false;
}); });
})(jQuery); })(jQuery);