From 5227a0e521ae9c1dc6e1815d793b0b3743e2d0a8 Mon Sep 17 00:00:00 2001 From: acardinale Date: Thu, 8 Sep 2016 18:04:13 +0200 Subject: [PATCH] Add response data to onAfterImgUpload callback onAfterImgUpload: function(data) { } --- croppic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/croppic.js b/croppic.js index 6ab5d14..7c2bfc3 100644 --- a/croppic.js +++ b/croppic.js @@ -313,10 +313,10 @@ img.load(function(){ that.initCropper(); that.hideLoader(); - if (that.options.onAfterImgUpload) that.options.onAfterImgUpload.call(that); + if (that.options.onAfterImgUpload) that.options.onAfterImgUpload.call(that, response); }); - if (that.options.onAfterImgUpload) that.options.onAfterImgUpload.call(that); + if (that.options.onAfterImgUpload) that.options.onAfterImgUpload.call(that, response); }