From 5c1cc5ff6d0a8442fcdabebf1a5d8ba0b341fbc4 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 29 Jan 2017 13:37:18 +0100 Subject: [PATCH] Fix issues with multiple media manager dialogs on same page --- com.woltlab.wcf/templates/mediaManager.tpl | 10 +- .../files/acp/templates/mediaListItems.tpl | 4 +- .../files/acp/templates/mediaManager.tpl | 10 +- .../WoltLabSuite/Core/Media/Manager/Base.js | 100 ++++++++++-------- .../WoltLabSuite/Core/Media/Manager/Editor.js | 2 +- .../WoltLabSuite/Core/Media/Manager/Search.js | 9 +- .../WoltLabSuite/Core/Media/Manager/Select.js | 2 +- .../files/js/WoltLabSuite/Core/Ui/Dialog.js | 9 +- wcfsetup/install/files/style/ui/media.scss | 4 +- 9 files changed, 86 insertions(+), 64 deletions(-) diff --git a/com.woltlab.wcf/templates/mediaManager.tpl b/com.woltlab.wcf/templates/mediaManager.tpl index d3f3563abb..ea78c3cc76 100644 --- a/com.woltlab.wcf/templates/mediaManager.tpl +++ b/com.woltlab.wcf/templates/mediaManager.tpl @@ -1,17 +1,17 @@ -
- +
+ - +
{if $__wcf->session->getPermission('admin.content.cms.canManageMedia')} -
+
{/if}
-
    +
      {include file='mediaListItems'}
diff --git a/wcfsetup/install/files/acp/templates/mediaListItems.tpl b/wcfsetup/install/files/acp/templates/mediaListItems.tpl index 95fe0041b0..189b3b4f57 100644 --- a/wcfsetup/install/files/acp/templates/mediaListItems.tpl +++ b/wcfsetup/install/files/acp/templates/mediaListItems.tpl @@ -3,7 +3,7 @@
{@$media->getElementTag(144)}
- + {assign var='__mediaTitle' value=$media->filename} {if $media->title} {assign var='__mediaTitle' value=$media->title} @@ -11,7 +11,7 @@

{$__mediaTitle}

- +