mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-15 01:01:43 +02:00
2140025c20
- Adds ES6 support via Babel - Transforms existing JavaScript to UMD modules - Adds module bundling via Browserify - Existing JavaScript converted to UMD modules - lib.js and leftandmain.js are bundled using browserify - JavaScript minifying of bundles handed by gulp
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;
|
|
}
|
|
});
|
|
|
|
});
|