瀏覽代碼

Fix Sidebar doesn't load tabs on iPhone running iOS 13.4+ #1328

CauseFX 6 年之前
父節點
當前提交
a0d319178c
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 3 3
      index.php
  2. 1 0
      js/functions.js

+ 3 - 3
index.php

@@ -1,6 +1,6 @@
 <?php include 'api/functions/static-globals.php';?>
 <?php include 'api/functions/static-globals.php';?>
 <!DOCTYPE html>
 <!DOCTYPE html>
-<html lang="en">
+<html lang="en" ontouchmove>
 
 
 <head>
 <head>
     <meta charset="utf-8">
     <meta charset="utf-8">
@@ -51,7 +51,7 @@
     <![endif]-->
     <![endif]-->
 </head>
 </head>
 
 
-<body class="fix-header" data-active-tab="">
+<body class="fix-header" data-active-tab="" tabIndex=0>
 <!-- ============================================================== -->
 <!-- ============================================================== -->
 <!-- Preloader -->
 <!-- Preloader -->
 <!-- ============================================================== -->
 <!-- ============================================================== -->
@@ -114,7 +114,7 @@
     <!-- Left Sidebar - style you can find in sidebar.scss  -->
     <!-- Left Sidebar - style you can find in sidebar.scss  -->
     <!-- ============================================================== -->
     <!-- ============================================================== -->
     <div class="navbar-default sidebar" role="navigation">
     <div class="navbar-default sidebar" role="navigation">
-        <div class="sidebar-nav slimscrollsidebar">
+        <div class="sidebar-nav">
             <div class="sidebar-head">
             <div class="sidebar-head">
                 <h3><span class="open-close m-r-5"><i class="ti-menu hidden-xs"></i><i class="ti-close visible-xs"></i></span>
                 <h3><span class="open-close m-r-5"><i class="ti-menu hidden-xs"></i><i class="ti-close visible-xs"></i></span>
                     <span class="hide-menu hidden-xs" lang="en">Navigation</span>
                     <span class="hide-menu hidden-xs" lang="en">Navigation</span>

+ 1 - 0
js/functions.js

@@ -2638,6 +2638,7 @@ function tabProcess(arrayItems) {
 		noTabs(arrayItems);
 		noTabs(arrayItems);
 	}
 	}
 	$(menuExtras(arrayItems.data.user.loggedin)).appendTo($('#side-menu'));
 	$(menuExtras(arrayItems.data.user.loggedin)).appendTo($('#side-menu'));
+    new SimpleBar($('.sidebar')[0]);
 }
 }
 function buildLogin(){
 function buildLogin(){
 	swapDisplay('login');
 	swapDisplay('login');