Browse files

Fixed problem with the input selectors using the deprecated jQuery se…

  • Loading branch information...
1 parent b02ee1c commit 9ffeb949aaeeb91688c939da74184637d3444fd9 @ftufek ftufek committed Aug 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/jquery.fileupload.js
View
4 js/jquery.fileupload.js
@@ -963,8 +963,8 @@
_initSpecialOptions: function () {
var options = this.options;
if (options.fileInput === undefined) {
- options.fileInput = this.element.is('input:file') ?
- this.element : this.element.find('input:file');
+ options.fileInput = this.element.is('input[type="file"]') ?
+ this.element : this.element.find('input[type="file"]');
} else if (!(options.fileInput instanceof $)) {
options.fileInput = $(options.fileInput);
}

0 comments on commit 9ffeb94

Please sign in to comment.