[TASK] Trigger events in DragUploader 76/28976/4
authorStephan Schuler <stephan.schuler@netlogix.de>
Mon, 31 Mar 2014 12:56:50 +0000 (14:56 +0200)
committerXavier Perseguers <xavier@typo3.org>
Thu, 12 Jun 2014 12:26:09 +0000 (14:26 +0200)
commit4477f2772dee41fbdddd69fcb8925c5ed8cca538
tree2e990dd18b1bb2009ebd38b71f9176d80298fb43
parenta27b58b8e2307da9aa1e48d245ef04c2f7337a11
[TASK] Trigger events in DragUploader

The DragUploader implementation prevents most of its JavaScript
API to be interacted with from outside the module. Especially
there is no public event allowing interaction based on ajax
responses such as "uploadComplete" or "uploadError".

This patch adds a couple of events being triggered on the $trigger
property of the DragUploader module. That's meant to be the "add"
button in DragUploader context, so it's a mandatory DOM node.

The introduced events are:
* uploadStart
* uploadError
* updateProgress
* uploadComplete

Change-Id: I983d5528247f88d319c2385e3fb032cbd701fa33
Resolves: #57454
Releases: 6.2
Reviewed-on: https://review.typo3.org/28976
Reviewed-by: Stefan Neufeind
Reviewed-by: Helmut Hummel
Tested-by: Stefan Neufeind
Reviewed-by: Wouter Wolters
Tested-by: Frans Saris
Reviewed-by: Frans Saris
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/backend/Resources/Public/JavaScript/DragUploader.js