From: Alexander Ebert Date: Tue, 9 Aug 2016 15:36:38 +0000 (+0200) Subject: Disabled media gallery for now X-Git-Tag: 3.0.0_Beta_1~779 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8c01624566b97cada0d9727c0318ace5e6492ef8;p=GitHub%2FWoltLab%2FWCF.git Disabled media gallery for now --- 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); }