mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-06 17:51:34 +02:00
14 lines
336 B
JavaScript
14 lines
336 B
JavaScript
|
(function($) {
|
||
|
$('.ss-assetuploadfield').entwine({
|
||
|
onmatch: function() {
|
||
|
this._super();
|
||
|
|
||
|
// Hide the "second step" part until we're actually uploading
|
||
|
this.find('.ss-uploadfield-editandorganize').hide();
|
||
|
},
|
||
|
onfileuploadstart: function(e) {
|
||
|
this.find('.ss-uploadfield-editandorganize').show();
|
||
|
}
|
||
|
|
||
|
});
|
||
|
}(jQuery));
|