From dce496e4f4d704fedac4c2940023b8ecd6c8bf7a Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 31 Jul 2016 13:30:44 +0200 Subject: [PATCH] Resolve todo in MediaManagerSelect --- .../files/js/WoltLab/WCF/Media/Manager/Select.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Media/Manager/Select.js b/wcfsetup/install/files/js/WoltLab/WCF/Media/Manager/Select.js index 2954793826..e52b804810 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Media/Manager/Select.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Media/Manager/Select.js @@ -6,7 +6,8 @@ * @license GNU Lesser General Public License * @module WoltLab/WCF/Media/Manager/Select */ -define(['Core', 'Dom/Traverse', 'Dom/Util', 'Language', 'ObjectMap', 'Ui/Dialog', 'WoltLab/WCF/Media/Manager/Base'], function(Core, DomTraverse, DomUtil, Language, ObjectMap, UiDialog, MediaManagerBase) { +define(['Core', 'Dom/Traverse', 'Dom/Util', 'Language', 'ObjectMap', 'Ui/Dialog', 'WoltLab/WCF/File/Util', 'WoltLab/WCF/Media/Manager/Base'], + function(Core, DomTraverse, DomUtil, Language, ObjectMap, UiDialog, FileUtil, MediaManagerBase) { "use strict"; /** @@ -91,7 +92,13 @@ define(['Core', 'Dom/Traverse', 'Dom/Util', 'Language', 'ObjectMap', 'Ui/Dialog' displayElement.innerHTML = '' + media.altText + ''; } else { - // TODO: add visual representation of the non-image media file + displayElement.innerHTML = '
' + + '' + + '
' + + '

' + media.filename + '

' + + '

' + media.formattedFilesize + '

' + + '
' + + '
'; } } } -- 2.20.1