Skip to content

Commit

Permalink
Merge pull request #54 from reeteshranjan/master
Browse files Browse the repository at this point in the history
Allow a hook in _onInputChange
  • Loading branch information
ebrentnelson committed Aug 8, 2015
2 parents 9991748 + 623d22c commit 55f811a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions client/fileuploader.js
Expand Up @@ -409,11 +409,13 @@ qq.FileUploaderBasic.prototype = {
_onUpload: function(id, fileName, xhr){
},
_onInputChange: function(input){
if (this._handler instanceof qq.UploadHandlerXhr){
this._uploadFileList(input.files);
} else {
if (this._validateFile(input)){
this._uploadFile(input);
if(!this._options.onInputChange || this._options.onInputChange(input)) {
if (this._handler instanceof qq.UploadHandlerXhr){
this._uploadFileList(input.files);
} else {
if (this._validateFile(input)){
this._uploadFile(input);
}
}
}
this._button.reset();
Expand Down

0 comments on commit 55f811a

Please sign in to comment.