mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #508 from sminnee/fix-change-password
Fix JS bug that was preventing passwords from being changed
This commit is contained in:
commit
617fe3c0ac
@ -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);
|
Loading…
Reference in New Issue
Block a user