Browse Source

auto update script executed

Toby Chui 1 year ago
parent
commit
71f216d1ae
2 changed files with 6 additions and 5 deletions
  1. 1 1
      web/components/status.html
  2. 5 4
      web/index.html

+ 1 - 1
web/components/status.html

@@ -593,7 +593,7 @@
                 {
                     type: 'line',
                     responsive: true,
-                    resizeDelay: 100,
+                    resizeDelay: 300,
                     options: {
                         animation: false,
                         maintainAspectRatio: false,

+ 5 - 4
web/index.html

@@ -284,11 +284,12 @@
                 $("#mainmenu").find(".item").removeClass("active");
                 $(targetBtn).addClass("active");
                 $(".functiontab").hide();
-                if (tabSwitchEventBind[tabID]){
-                    tabSwitchEventBind[tabID]();
-                }
                 $("#" + tabID).fadeIn('fast', function(){
-                    
+                    setTimeout(function(){
+                        if (tabSwitchEventBind[tabID]){
+                            tabSwitchEventBind[tabID]();
+                        }
+                    },100)
                 });
                 $('html,body').animate({scrollTop: 0}, 'fast');
                 window.location.hash = tabID;