diff --git a/core/client/assets/lib/uploader.js b/core/client/assets/lib/uploader.js index b8e623f93e..7e5516a97f 100644 --- a/core/client/assets/lib/uploader.js +++ b/core/client/assets/lib/uploader.js @@ -22,7 +22,6 @@ $.extend(this, { complete: function (result) { var self = this; - $dropzone.trigger('uploadstart', [$dropzone.attr('id')]); function showImage(width, height) { $dropzone.find('img.js-upload-target').attr({"width": width, "height": height}).css({"display": "block"}); @@ -162,6 +161,7 @@ $dropzone.find('div.description').before($url); $dropzone.find('.js-button-accept').on('click', function () { + $dropzone.trigger('uploadstart', [$dropzone.attr('id')]); $dropzone.find('div.description').hide(); val = $('#uploadurl').val(); $dropzone.find('.js-fileupload').removeClass('right');