Permalink
Browse files

Adjust the max number of files inside of the resize callback. Fixes #…

…1106.
  • Loading branch information...
1 parent cc6e8cd commit 286e790e4b9244147e2a99e0f1a05ba121fbec88 @blueimp committed Mar 21, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/jquery.fileupload-ui.js
@@ -1,5 +1,5 @@
/*
- * jQuery File Upload User Interface Plugin 6.6.2
+ * jQuery File Upload User Interface Plugin 6.6.3
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
@@ -81,9 +81,9 @@
var that = $(this).data('fileupload'),
options = that.options,
files = data.files;
- that._adjustMaxNumberOfFiles(-files.length);
- data.isAdjusted = true;
$(this).fileupload('resize', data).done(data, function () {
+ that._adjustMaxNumberOfFiles(-files.length);
+ data.isAdjusted = true;
data.files.valid = data.isValidated = that._validate(files);
data.context = that._renderUpload(files)
.appendTo(options.filesContainer)

0 comments on commit 286e790

Please sign in to comment.