mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
21 lines
400 B
JavaScript
21 lines
400 B
JavaScript
|
(function($) {
|
||
|
$.entwine('ss', function($){
|
||
|
|
||
|
$('.memberdatetimeoptionset').entwine({
|
||
|
onmatch: function() {
|
||
|
this.find('.description .toggle-content').hide();
|
||
|
this._super();
|
||
|
}
|
||
|
});
|
||
|
|
||
|
$('.memberdatetimeoptionset .toggle').entwine({
|
||
|
onclick: function(e) {
|
||
|
jQuery(this).closest('.description').find('.toggle-content').toggle();
|
||
|
return false;
|
||
|
}
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
}(jQuery));
|