From b0969180ec1263213fc986ea7215d9062ba2bae1 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 21 Aug 2016 12:23:24 +0200 Subject: [PATCH] Add confirm message for media file deletion --- com.woltlab.wcf/templates/mediaJavaScript.tpl | 2 +- com.woltlab.wcf/templates/mediaListItems.tpl | 12 ++++++++---- .../install/files/acp/templates/mediaJavaScript.tpl | 2 +- wcfsetup/install/files/acp/templates/mediaList.tpl | 2 +- .../install/files/acp/templates/mediaListItems.tpl | 12 ++++++++---- .../files/js/WoltLabSuite/Core/Media/Manager/Base.js | 11 ++++++++--- wcfsetup/install/lang/en.xml | 1 + 7 files changed, 28 insertions(+), 14 deletions(-) diff --git a/com.woltlab.wcf/templates/mediaJavaScript.tpl b/com.woltlab.wcf/templates/mediaJavaScript.tpl index c929e711be..79e1988353 100644 --- a/com.woltlab.wcf/templates/mediaJavaScript.tpl +++ b/com.woltlab.wcf/templates/mediaJavaScript.tpl @@ -3,7 +3,7 @@ Language.addObject({ 'wcf.global.button.insert': '{lang}wcf.global.button.insert{/lang}', - 'wcf.media.delete.confirmMessage': '{lang __encode=true}wcf.media.delete.confirmMessage{/lang}', + 'wcf.media.delete.confirmMessage': '{lang __encode=true __literal=true}wcf.media.delete.confirmMessage{/lang}', 'wcf.media.insert': '{lang}wcf.media.insert{/lang}', 'wcf.media.insert.imageSize': '{lang}wcf.media.insert.imageSize{/lang}', 'wcf.media.insert.imageSize.small': '{lang}wcf.media.insert.imageSize.small{/lang}', diff --git a/com.woltlab.wcf/templates/mediaListItems.tpl b/com.woltlab.wcf/templates/mediaListItems.tpl index 70e06b7153..95fe0041b0 100644 --- a/com.woltlab.wcf/templates/mediaListItems.tpl +++ b/com.woltlab.wcf/templates/mediaListItems.tpl @@ -3,11 +3,15 @@
{@$media->getElementTag(144)}
- + + {assign var='__mediaTitle' value=$media->filename} + {if $media->title} + {assign var='__mediaTitle' value=$media->title} + {/if}
-

{if $media->title}{$media->title}{else}{$media->filename}{/if}

+

{$__mediaTitle}

- +