Commit 4fa4cc9c by hoangson

fix sessionStorage activeTab for ios

parent e823297c
...@@ -212,19 +212,25 @@ ...@@ -212,19 +212,25 @@
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$("#footer").load("main-footer.html", function() { $("#footer").load("main-footer.html", function() {
if (!sessionStorage.activeTab) { let activeTab;
CHK.loadDashboardSetting(function() { if (typeof sessionStorage != 'undefined' && sessionStorage.activeTab != 'undefined') {
if (CHK.dashboardSetting.dashboardHome) { activeTab = sessionStorage.activeTab;
CHK_Footer.goDashboard();
} else {
CHK_Footer.goOperationList();
}
});
} else if (sessionStorage.activeTab === 'dashboard') {
CHK_Footer.goDashboard();
} else if (sessionStorage.activeTab === 'operationList') {
CHK_Footer.goOperationList();
} }
if (typeof activeTab != 'undefined') {
if (activeTab == 'dashboard') {
CHK_Footer.goDashboard();
} else {
CHK_Footer.goOperationList();
}
return;
}
CHK.loadDashboardSetting(function() {
if (CHK.dashboardSetting.dashboardHome) {
CHK_Footer.goDashboard();
} else {
CHK_Footer.goOperationList();
}
});
}); });
}); });
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment