Skip to content

Commit

Permalink
Correctly handle autoUpload when passed as options parameter.
Browse files Browse the repository at this point in the history
Remove unnecessary destroy override.
  • Loading branch information
blueimp committed Feb 13, 2012
1 parent 180ee2b commit ac6b864
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions js/jquery.fileupload-ui.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* jQuery File Upload User Interface Plugin 6.4
* jQuery File Upload User Interface Plugin 6.4.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
Expand Down Expand Up @@ -90,7 +90,7 @@
function (node) {
if ((that._trigger('added', e, data) !== false) &&
(options.autoUpload || data.autoUpload) &&
data.isValidated) {
data.autoUpload !== false && data.isValidated) {
data.submit();
}
}
Expand Down Expand Up @@ -579,10 +579,6 @@
this._initTemplates();
},

destroy: function () {
$.blueimpIP.fileupload.prototype.destroy.call(this);
},

enable: function () {
$.blueimpIP.fileupload.prototype.enable.call(this);
this.element.find('input, button').prop('disabled', false);
Expand Down

0 comments on commit ac6b864

Please sign in to comment.