Prevent flickering in languageMultilingualism.tpl
authorMatthias Schmidt <gravatronics@live.com>
Sat, 19 Mar 2016 12:31:50 +0000 (13:31 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 19 Mar 2016 12:31:53 +0000 (13:31 +0100)
… if multilingualism is disabled at the moment.

wcfsetup/install/files/acp/templates/languageMultilingualism.tpl

index c4e448ae68c99cefeef182e578b563e7c619758c..edf9b55635bfddf2bf22a2cf123ee311f93375e5 100644 (file)
@@ -5,7 +5,6 @@
        $(function() {
                var $languageIDs = $('#languageIDs');
                $('#enable').click(function() { $languageIDs.toggle(); });
-               {if !$enable}$languageIDs.hide();{/if}
        });
        //]]>
 </script>
@@ -39,7 +38,7 @@
                        <small class="sectionDescription">{lang}wcf.acp.language.multilingualism.enable.description{/lang}</small>
                </header>
                
-               <dl id="languageIDs"{if $errorField == 'languageIDs'} class="formError"{/if}>
+               <dl id="languageIDs"{if $errorField == 'languageIDs'} class="formError"{/if}{if !$enable} style="display: none;"{/if}>
                        <dt><label for="languageIDs">{lang}wcf.acp.language.multilingualism.languages{/lang}</label></dt>
                        <dd class="floated">
                                {foreach from=$languages item='language'}