From e70c26999840c206062a76a6cc9eb341456d1428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Sat, 26 May 2018 23:07:26 +0200 Subject: [PATCH] [Web] Replot graph immediately --- data/web/js/debug.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/web/js/debug.js b/data/web/js/debug.js index f02cd64e..d5724ae6 100644 --- a/data/web/js/debug.js +++ b/data/web/js/debug.js @@ -352,7 +352,7 @@ jQuery(function($){ var total = 0; $(data).map(function(){total += this[1];}) rspamd_labels = $.makeArray($(data).map(function(){return "
" + this[0] + " (" + this[1] + ") " + Math.round(this[1]/total * 100) + "%
";})); - window.rspamd_donut = $.jqplot('rspamd_donut', [data], + window.rspamd_donut = $.jqplot('rspamd_donut', [data], { seriesDefaults: { renderer: jQuery.jqplot.DonutRenderer, @@ -378,6 +378,7 @@ jQuery(function($){ } } ); + window.rspamd_donut.replot({}); } }); } @@ -533,7 +534,6 @@ jQuery(function($){ draw_api_logs(); draw_netfilter_logs(); draw_rspamd_history(); - rspamd_donut.replot({}); $(window).resize(function () { var timer; clearTimeout(timer);