Commit 4fa4cc9c by hoangson

fix sessionStorage activeTab for ios

parent e823297c
...@@ -212,20 +212,26 @@ ...@@ -212,20 +212,26 @@
<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;
}
if (typeof activeTab != 'undefined') {
if (activeTab == 'dashboard') {
CHK_Footer.goDashboard(); CHK_Footer.goDashboard();
} else { } else {
CHK_Footer.goOperationList(); CHK_Footer.goOperationList();
} }
}); return;
} else if (sessionStorage.activeTab === 'dashboard') { }
CHK.loadDashboardSetting(function() {
if (CHK.dashboardSetting.dashboardHome) {
CHK_Footer.goDashboard(); CHK_Footer.goDashboard();
} else if (sessionStorage.activeTab === 'operationList') { } else {
CHK_Footer.goOperationList(); CHK_Footer.goOperationList();
} }
}); });
}); });
});
</script> </script>
</html> </html>
\ No newline at end of file
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