mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
20 lines
380 B
JavaScript
20 lines
380 B
JavaScript
|
import $ from 'jQuery';
|
||
|
|
||
|
$.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;
|
||
|
}
|
||
|
});
|
||
|
|
||
|
});
|