From: Matthias Schmidt Date: Sun, 11 Sep 2016 12:17:26 +0000 (+0200) Subject: Make `wcf.media.upload.success` available in JS code X-Git-Tag: 3.0.0_Beta_1~218 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e23e3e96aa82ee31f242cc2b718358bc9a27131;p=GitHub%2FWoltLab%2FWCF.git Make `wcf.media.upload.success` available in JS code --- 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});