From 8c01624566b97cada0d9727c0318ace5e6492ef8 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 9 Aug 2016 17:36:38 +0200 Subject: [PATCH] Disabled media gallery for now --- .../js/WoltLabSuite/Core/Media/Manager/Editor.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Editor.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Editor.js index 8ead779e86..24326f80be 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Editor.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Editor.js @@ -72,7 +72,7 @@ define(['Core', 'Dictionary', 'Dom/Traverse', 'Language', 'Ui/Dialog', 'WoltLabS thumbnailOptions += ''; var dialog = '
' - + (this._mediaToInsert.size > 1 ? '
' + /*+ (this._mediaToInsert.size > 1 ? '
' + '
' + Language.get('wcf.media.insert.type') + '
' + '
' + '' + '
' - + '
' : '') + + '
' : '')*/ + '
' + '
' + Language.get('wcf.media.insert.imageSize') + '
' + '
' @@ -104,7 +104,7 @@ define(['Core', 'Dictionary', 'Dom/Traverse', 'Language', 'Ui/Dialog', 'WoltLabS elByClass('buttonPrimary', content)[0].addEventListener(WCF_CLICK_EVENT, this._insertMedia.bind(this)); // toggle thumbnail size selection based on selected insert type - var insertType = elBySel('select[name=insertType]', content); + /*var insertType = elBySel('select[name=insertType]', content); if (insertType !== null) { var thumbnailSelection = elByClass('thumbnailSizeSelection', content)[0]; insertType.addEventListener('change', function(event) { @@ -115,7 +115,9 @@ define(['Core', 'Dictionary', 'Dom/Traverse', 'Language', 'Ui/Dialog', 'WoltLabS elShow(thumbnailSelection); } }); - } + }*/ + var thumbnailSelection = elBySel('.thumbnailSizeSelection', content); + elShow(thumbnailSelection); }.bind(this), title: Language.get('wcf.media.insert') }, @@ -176,9 +178,9 @@ define(['Core', 'Dictionary', 'Dom/Traverse', 'Language', 'Ui/Dialog', 'WoltLabS var dialogContent = event.currentTarget.closest('.dialogContent'); - if (this._mediaToInsert.size > 1) { + /*if (this._mediaToInsert.size > 1) { insertType = elBySel('select[name=insertType]', dialogContent).value; - } + }*/ thumbnailSize = elBySel('select[name=thumbnailSize]', dialogContent).value; } @@ -200,7 +202,7 @@ define(['Core', 'Dictionary', 'Dom/Traverse', 'Language', 'Ui/Dialog', 'WoltLabS var mediaIds = []; this._mediaToInsert.forEach(function(media) { mediaIds.push(media.mediaID); - }) + }); ControllerClipboard.unmark('com.woltlab.wcf.media', mediaIds); } -- 2.20.1