From 1070b1ebc3bbad9598d018f7f7fcdbea926311a5 Mon Sep 17 00:00:00 2001 From: Catouse Date: Tue, 9 May 2017 17:27:18 +0800 Subject: [PATCH] * improve pie chart perfermance. --- module/common/view/chart.html.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/common/view/chart.html.php b/module/common/view/chart.html.php index 559362fe0d..dbbdd494c1 100644 --- a/module/common/view/chart.html.php +++ b/module/common/view/chart.html.php @@ -138,7 +138,9 @@ if($config->debug) $(function() { $('.table-chart').tableChart(); - $('.progress-pie').progressPie(); + var $pies = $('.progress-pie'); + if($pies.length > 100) setTimeout(function(){$pies.progressPie();}, 1000); + else $pies.progressPie(); }); }());