Permalink
Browse files

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...
1 parent da4534b commit d342794cfe728cfb20ee7badb64cc617438b296d @chillu chillu committed Oct 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 javascript/UploadField.js
@@ -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();
}

0 comments on commit d342794

Please sign in to comment.