Some cleanup and fixes
authorAlexander Ebert <ebert@woltlab.com>
Thu, 28 Jul 2016 17:27:29 +0000 (19:27 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 28 Jul 2016 17:27:29 +0000 (19:27 +0200)
wcfsetup/install/files/acp/templates/header.tpl

index 5a1f774fd77bd8b148a1ee53772d3f0ed9a676b5..cd96f73825dc0c3ad25384965eceb4f4143e0d4b 100644 (file)
        <link rel="apple-touch-icon" href="{@$__wcf->getPath()}images/apple-touch-icon.png">
        
        <script>
-               var SID_ARG_2ND = '{@SID_ARG_2ND_NOT_ENCODED}';
+               var SID_ARG_2ND = '';
                var WCF_PATH = '{@$__wcf->getPath()}';
                var SECURITY_TOKEN = '{@SECURITY_TOKEN}';
                var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
                var TIME_NOW = {@TIME_NOW};
-               var URL_LEGACY_MODE = {if URL_LEGACY_MODE}true{else}false{/if};
+               var URL_LEGACY_MODE = false;
        </script>
        
        {js application='wcf' file='require' bundle='WCF.Core' core='true'}
@@ -34,7 +34,8 @@
                });
        </script>
        <script>
-               document.addEventListener('DOMContentLoaded', function() {
+               // this caused some timing issues, check if it is still required
+               //document.addEventListener('DOMContentLoaded', function() {
                        require(['Language', 'WoltLab/WCF/Acp/Bootstrap', 'User'], function(Language, AcpBootstrap, User) {
                                Language.addObject({
                                        '__days': [ '{lang}wcf.date.day.sunday{/lang}', '{lang}wcf.date.day.monday{/lang}', '{lang}wcf.date.day.tuesday{/lang}', '{lang}wcf.date.day.wednesday{/lang}', '{lang}wcf.date.day.thursday{/lang}', '{lang}wcf.date.day.friday{/lang}', '{lang}wcf.date.day.saturday{/lang}' ],
                                
                                User.init({@$__wcf->user->userID}, '{@$__wcf->user->username|encodeJS}');
                        });
-               });
+               //});
        </script>
        {js application='wcf' lib='jquery'}