Closed abrom closed 9 years ago
Allows overridden custom upload/error functions to access the inlineattach object for calling back on the onErrorUploading/onUploadedFile functions.
custom
onErrorUploading
onUploadedFile
i.e.
$('.inlineattach').inlineattach({ customUploadHandler: function(file) { var that = this; MyCustomUploader(function(error, data) { if (error) { that.onErrorUploading(); } else { that.onUploadedFile(data); } }); }});
Thanks @abrom for this improvement! I will add these changes to the upcoming version 2 aswell.
No problems @Rovak ! Great plugin you've written :+1:
Allows overridden
custom
upload/error functions to access the inlineattach object for calling back on theonErrorUploading
/onUploadedFile
functions.i.e.