Fixed WCFSetup on mobile devices
authorAlexander Ebert <ebert@woltlab.com>
Wed, 26 Oct 2016 12:01:16 +0000 (14:01 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 26 Oct 2016 12:01:16 +0000 (14:01 +0200)
wcfsetup/install/files/acp/templates/packageInstallationSetup.tpl
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Menu/Abstract.js

index 30a7bfb4a7cbee070bc85d90a9a1975088f6ac53..43d0fae82804bb9839547fff36beb2059933db78 100644 (file)
@@ -1,5 +1,11 @@
-{include file='header' templateName='packageInstallationSetup' templateNameApplication='wcf'}
+{include file='header' templateName='packageInstallationSetup' templateNameApplication='wcf' __disableLoginLink=true __disableAds=true}
 
+<style>
+       #pageHeaderPanel,
+       #pageFooter {
+               pointer-events: none !important;
+       }
+</style>
 <script data-relocate="true">
        $(function() {
                WCF.Language.add('wcf.acp.package.install.title', '{lang}wcf.acp.package.install.title{/lang}');
index b9ce96605e64b417dce9f3b7edd1780cc1bb59db..c556e3cde2b56f587d3ebf0fccc759d4b3753d6d 100644 (file)
@@ -35,6 +35,11 @@ define(['Core', 'Environment', 'EventHandler', 'Language', 'ObjectMap', 'Dom/Tra
                 * @param       {string}        buttonSelector          CSS selector for toggle button
                 */
                init: function(eventIdentifier, elementId, buttonSelector) {
+                       if (elData(document.body, 'template') === 'packageInstallationSetup') {
+                               // work-around for WCFSetup on mobile
+                               return;
+                       }
+                       
                        this._activeList = [];
                        this._depth = 0;
                        this._enabled = true;