mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-14 16:51:50 +02:00
- 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
35 lines
546 B
JavaScript
35 lines
546 B
JavaScript
/**
|
|
* File: MemberImportForm.js
|
|
*/
|
|
import $ from 'jQuery';
|
|
|
|
$.entwine('ss', function($){
|
|
/**
|
|
* Class: .import-form .advanced
|
|
*/
|
|
$('.import-form .advanced').entwine({
|
|
onmatch: function() {
|
|
this._super();
|
|
|
|
this.hide();
|
|
},
|
|
onunmatch: function() {
|
|
this._super();
|
|
}
|
|
});
|
|
|
|
/**
|
|
* Class: .import-form a.toggle-advanced
|
|
*/
|
|
$('.import-form a.toggle-advanced').entwine({
|
|
|
|
/**
|
|
* Function: onclick
|
|
*/
|
|
onclick: function(e) {
|
|
this.parents('form:eq(0)').find('.advanced').toggle();
|
|
return false;
|
|
}
|
|
});
|
|
});
|