From 9e23e3e96aa82ee31f242cc2b718358bc9a27131 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 11 Sep 2016 14:17:26 +0200 Subject: [PATCH] Make `wcf.media.upload.success` available in JS code --- com.woltlab.wcf/templates/mediaJavaScript.tpl | 3 ++- wcfsetup/install/files/acp/templates/mediaJavaScript.tpl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/com.woltlab.wcf/templates/mediaJavaScript.tpl b/com.woltlab.wcf/templates/mediaJavaScript.tpl index 91b3b131d6..39f248b2a4 100644 --- a/com.woltlab.wcf/templates/mediaJavaScript.tpl +++ b/com.woltlab.wcf/templates/mediaJavaScript.tpl @@ -13,7 +13,8 @@ 'wcf.media.manager': '{lang}wcf.media.manager{/lang}', 'wcf.media.edit': '{lang}wcf.media.edit{/lang}', 'wcf.media.button.insert': '{lang}wcf.media.button.insert{/lang}', - 'wcf.media.search.noResults': '{lang}wcf.media.search.noResults{/lang}' + 'wcf.media.search.noResults': '{lang}wcf.media.search.noResults{/lang}', + 'wcf.media.upload.success': '{lang}wcf.media.upload.success{/lang}' }); Permission.add('admin.content.cms.canManageMedia', {if $__wcf->session->getPermission('admin.content.cms.canManageMedia')}true{else}false{/if}); diff --git a/wcfsetup/install/files/acp/templates/mediaJavaScript.tpl b/wcfsetup/install/files/acp/templates/mediaJavaScript.tpl index 91b3b131d6..39f248b2a4 100644 --- a/wcfsetup/install/files/acp/templates/mediaJavaScript.tpl +++ b/wcfsetup/install/files/acp/templates/mediaJavaScript.tpl @@ -13,7 +13,8 @@ 'wcf.media.manager': '{lang}wcf.media.manager{/lang}', 'wcf.media.edit': '{lang}wcf.media.edit{/lang}', 'wcf.media.button.insert': '{lang}wcf.media.button.insert{/lang}', - 'wcf.media.search.noResults': '{lang}wcf.media.search.noResults{/lang}' + 'wcf.media.search.noResults': '{lang}wcf.media.search.noResults{/lang}', + 'wcf.media.upload.success': '{lang}wcf.media.upload.success{/lang}' }); Permission.add('admin.content.cms.canManageMedia', {if $__wcf->session->getPermission('admin.content.cms.canManageMedia')}true{else}false{/if}); -- 2.20.1