Merge pull request #508 from sminnee/fix-change-password

Fix JS bug that was preventing passwords from being changed
This commit is contained in:
Ingo Schommer 2012-06-07 03:39:40 -07:00
commit 617fe3c0ac

View File

@ -1,6 +1,11 @@
(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;
});
})(jQuery);