From aa5fecb350fb2071209823ae06c6b39ecdc55d2f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 3 Jan 2013 22:05:27 +0100 Subject: [PATCH] Fixed style description management Fixes #890 --- .../install/files/acp/templates/styleAdd.tpl | 2 ++ .../install/files/acp/templates/styleList.tpl | 2 +- .../files/lib/acp/form/StyleAddForm.class.php | 29 +++++++++++++++++-- .../lib/acp/form/StyleEditForm.class.php | 9 +++++- 4 files changed, 37 insertions(+), 5 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/styleAdd.tpl b/wcfsetup/install/files/acp/templates/styleAdd.tpl index 914919ed58..1cab6f48d6 100644 --- a/wcfsetup/install/files/acp/templates/styleAdd.tpl +++ b/wcfsetup/install/files/acp/templates/styleAdd.tpl @@ -206,6 +206,8 @@ {/if} {/if} + + {include file='multipleLanguageInputJavascript' elementIdentifier='styleDescription' forceSelection=true} diff --git a/wcfsetup/install/files/acp/templates/styleList.tpl b/wcfsetup/install/files/acp/templates/styleList.tpl index f40c482dce..f6ebbe40a5 100644 --- a/wcfsetup/install/files/acp/templates/styleList.tpl +++ b/wcfsetup/install/files/acp/templates/styleList.tpl @@ -44,7 +44,7 @@

{$style->styleName}

- {if $style->styleDescription}

{$style->styleDescription}

{/if} + {if $style->styleDescription}

{lang}{@$style->styleDescription}{/lang}

{/if}