userGroupAdd now uses i18n JS template
authorAlexander Ebert <ebert@woltlab.com>
Mon, 17 Dec 2012 17:13:16 +0000 (18:13 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 17 Dec 2012 17:13:16 +0000 (18:13 +0100)
Fixes #917

wcfsetup/install/files/acp/templates/multipleLanguageInputJavascript.tpl
wcfsetup/install/files/acp/templates/userGroupAdd.tpl

index 2a4a32a834a96b91da733297cdbd67c4bf9acad8..57b8d55c7e18e2985077b1ec72aecc69bf2cae6b 100644 (file)
@@ -1,4 +1,3 @@
-{if !$forceSelection|isset}{assign var=forceSelection value=false}{/if}
 <script type="text/javascript">
        //<![CDATA[
        $(function() {
index 1cfec52134be7298cfbf739326ec14892994ae04..99329f39f27dd9ebbb624d63f3ebbf747a821841 100644 (file)
@@ -4,10 +4,6 @@
        //<![CDATA[
        $(function() {
                WCF.TabMenu.init();
-               
-               var $availableLanguages = { {implode from=$availableLanguages key=languageID item=languageName}{@$languageID}: '{$languageName}'{/implode} };
-               var $groupNameValues = { {implode from=$i18nValues['groupName'] key=languageID item=value}'{@$languageID}': '{$value}'{/implode} };
-               new WCF.MultipleLanguageInput('groupName', false, $groupNameValues, $availableLanguages);
        });
        //]]>
 </script>
@@ -59,6 +55,8 @@
                                                </small>
                                        {/if}
                                        <small>{lang}wcf.acp.group.groupName.description{/lang}</small>
+                                       
+                                       {include file='multipleLanguageInputJavascript' elementIdentifier='groupName' forceSelection=false}
                                </dd>
                        </dl>