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:
Ingo Schommer 2012-10-31 11:34:12 +01:00
parent da4534bda8
commit d342794cfe

View File

@ -153,10 +153,10 @@
acceptFileTypes: new RegExp(config.acceptFileTypes, 'i')
}
));
if (this.data('fileupload')._isXHRUpload({multipart: true})) {
$('.ss-uploadfield-item-uploador').show();
dropZone.show(); // drag&drop avaliable
dropZone.hide().show();
}