|
@@ -570,7 +570,17 @@
|
|
//Bind event to tab switch
|
|
//Bind event to tab switch
|
|
tabSwitchEventBind["status"] = function(){
|
|
tabSwitchEventBind["status"] = function(){
|
|
//On switch over to this page, resize the chart
|
|
//On switch over to this page, resize the chart
|
|
- //updateChartSize();
|
|
|
|
|
|
+ $("#networkActivity").hide();
|
|
|
|
+ $("#networkActivityPlaceHolder").show();
|
|
|
|
+ if (chartResizeTimeout != undefined){
|
|
|
|
+ clearTimeout(chartResizeTimeout);
|
|
|
|
+ }
|
|
|
|
+ chartResizeTimeout = setTimeout(function(){
|
|
|
|
+ chartResizeTimeout = undefined;
|
|
|
|
+ $("#networkActivityPlaceHolder").hide();
|
|
|
|
+ $("#networkActivity").show();
|
|
|
|
+ updateChartSize();
|
|
|
|
+ }, 300);
|
|
}
|
|
}
|
|
|
|
|
|
//Initialize chart data
|
|
//Initialize chart data
|