Skip to content

Commit

Permalink
Provide the button to the onSizeError function
Browse files Browse the repository at this point in the history
  • Loading branch information
aydun committed Feb 6, 2018
1 parent 576cfd4 commit 6d14537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimpleAjaxUploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ ss.SimpleUpload = function( options ) {
onDone: function( filename, status, textStatus, response, uploadBtn, size ) {},
onAllDone: function() {},
onExtError: function( filename, extension ) {},
onSizeError: function( filename, fileSize ) {},
onSizeError: function( filename, fileSize, uploadBtn ) {},
onError: function( filename, type, status, statusText, response, uploadBtn, size ) {},
startXHR: function( filename, fileSize, uploadBtn ) {},
endXHR: function( filename, fileSize, uploadBtn ) {},
Expand Down Expand Up @@ -2202,7 +2202,7 @@ ss.extendObj( ss.SimpleUpload.prototype, {
{
this.removeCurrent( fileObj.id );
this.log( fileObj.name + ' exceeds ' + this._opts.maxSize + 'K limit' );
this._opts.onSizeError.call( this, fileObj.name, fileObj.size );
this._opts.onSizeError.call( this, fileObj.name, fileObj.size, fileObj.btn );
return false;
}

Expand Down

0 comments on commit 6d14537

Please sign in to comment.