Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chillu committed Oct 31, 2012
1 parent da4534b commit d342794
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/UploadField.js
Expand Up @@ -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();
}


Expand Down

0 comments on commit d342794

Please sign in to comment.