-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(all CMS .js is in a bundle, so this needed to be extracted)
- Loading branch information
1 parent
c0f62b6
commit acb4a36
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* extracted from silverstripe/framework */ | ||
|
||
(function ($) { | ||
$(document).on('click', '.confirmedpassword .showOnClick a', function () { | ||
var $container = $('.showOnClickContainer', $(this).parent()); | ||
|
||
$container.toggle('fast', function() { | ||
$container.find('input[type="hidden"]').val($container.is(":visible") ? 1 : 0); | ||
}); | ||
|
||
return false; | ||
}) | ||
.find(".confirmedpassword .showOnClickContainer").hide(); | ||
})(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters