From: Matthias Schmidt Date: Sun, 31 Jul 2016 11:30:44 +0000 (+0200) Subject: Resolve todo in MediaManagerSelect X-Git-Tag: 3.0.0_Beta_1~850 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dce496e4f4d704fedac4c2940023b8ecd6c8bf7a;p=GitHub%2FWoltLab%2FWCF.git Resolve todo in MediaManagerSelect --- 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 + '

' + + '
' + + '
'; } } }