[BUGFIX] Add clickmenu trigger for uploaded files 69/42269/4
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Tue, 4 Aug 2015 20:25:10 +0000 (22:25 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 5 Aug 2015 09:53:52 +0000 (11:53 +0200)
Add the <a> tag around the file icon of uploaded files to enable
the clickmenu.

Resolves: #62352
Releases: master
Change-Id: I3fa770ef671a1b77b1048779dcabc797914cebce
Reviewed-on: http://review.typo3.org/42269
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Public/JavaScript/DragUploader.js

index 312bc05..47176c6 100644 (file)
@@ -416,7 +416,7 @@ define('TYPO3/CMS/Backend/DragUploader', ['jquery', 'moment', 'nprogress', 'TYPO
 
                                // replace file icon
                                if (data.result.upload[0].iconClasses) {
-                                       me.$iconCol.html('<span class="' + data.result.upload[0].iconClasses + '">&nbsp;</span>');
+                                       me.$iconCol.html('<a href="#" class="t3-js-clickmenutrigger" data-table="' + data.result.upload[0].id + '" data-listframe="1"><span class="' + data.result.upload[0].iconClasses + '">&nbsp;</span></a>');
                                }
 
                                if (me.dragUploader.irreObjectUid) {