mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-28 13:36:12 +02:00
13 lines
322 B
JavaScript
13 lines
322 B
JavaScript
var field = $('div.toggleField');
|
|
|
|
if(field.hasClass('startClosed')) {
|
|
field.find('div.contentMore').hide();
|
|
field.find('div.contentLess').show();
|
|
}
|
|
|
|
$('div.toggleField .triggerLess, div.toggleField .triggerMore').click(function() {
|
|
field.find('div.contentMore').toggle();
|
|
field.find('div.contentLess').toggle();
|
|
});
|
|
|