silverstripe-framework/admin/client/src/legacy/MemberDatetimeOptionsetField.js

20 lines
380 B
JavaScript
Raw Normal View History

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;
}
});
});