mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fixed intermittent absence of UploadField "drop" area
Only occurs when the UploadField resources are loaded uncached. Possible cause: Randomized application between UploadField.js setting "display: block" and UploadField.css setting "display: none". Simply hiding the element before showing it fixes the issue.
This commit is contained in:
parent
da4534bda8
commit
d342794cfe
@ -153,10 +153,10 @@
|
|||||||
acceptFileTypes: new RegExp(config.acceptFileTypes, 'i')
|
acceptFileTypes: new RegExp(config.acceptFileTypes, 'i')
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|
||||||
if (this.data('fileupload')._isXHRUpload({multipart: true})) {
|
if (this.data('fileupload')._isXHRUpload({multipart: true})) {
|
||||||
$('.ss-uploadfield-item-uploador').show();
|
$('.ss-uploadfield-item-uploador').show();
|
||||||
dropZone.show(); // drag&drop avaliable
|
dropZone.hide().show();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user