mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
8eac22c628
Multiple entry points can't result in a single bundle.css with a fixed filename, see https://github.com/webpack/extract-text-webpack-plugin/issues/179 Until that's resolved, it's easier to keep the 'css' task separate in Webpack, and have a single entry point for all CSS (bundle.scss). Also partially reverting "Moved frontend assets into admin/ "module"", which moved too many files: debug.css and install.css need to remain as framework (not admin) deps. Split out into a separate `framework-css` Webpack task in preparation for splitting off the module.
15 lines
505 B
JavaScript
15 lines
505 B
JavaScript
import $ from 'jQuery';
|
|
|
|
// TODO Enable once https://github.com/webpack/extract-text-webpack-plugin/issues/179 is resolved. Included in bundle.scss for now.
|
|
// require('../styles/legacy/ConfirmedPasswordField.scss');
|
|
|
|
$(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;
|
|
});
|