mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-22 02:26:11 +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)); |