vendor/assets/javascripts/uploader/jquery.fileupload-ui.js in rails-uploader-0.4.5 vs vendor/assets/javascripts/uploader/jquery.fileupload-ui.js in rails-uploader-0.5.0
- old
+ new
@@ -169,9 +169,11 @@
getFilesFromResponse = data.getFilesFromResponse ||
that.options.getFilesFromResponse,
files = getFilesFromResponse(data),
template,
deferred;
+ var options = that.options;
+ if (options.singular) { options.filesContainer.html(data.context || '') };
if (data.context) {
data.context.each(function (index) {
var file = files[index] ||
{error: 'Empty file upload result'};
deferred = that._addFinishedDeferreds();