aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2016-12-23 13:01:17 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2016-12-23 13:01:17 +0300
commit1b4ebd17edea6d8d84ca9e1cbc3b98c9068fef58 (patch)
tree8edb69549b43de94ed31c40bfba90f3d69a2b0df /interface
parentc10a012a44a1c40df0e90511f745af0b7377a665 (diff)
downloadrspamd-1b4ebd17edea6d8d84ca9e1cbc3b98c9068fef58.tar.gz
rspamd-1b4ebd17edea6d8d84ca9e1cbc3b98c9068fef58.zip
[WebUI] Fix stat widgets timers multiplication on `Refresh` click
Diffstat (limited to 'interface')
-rw-r--r--interface/js/rspamd.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js
index fcc63f809..38cb0ed13 100644
--- a/interface/js/rspamd.js
+++ b/interface/js/rspamd.js
@@ -76,9 +76,10 @@
return false;
});
$('#refresh').on('click', function (event) {
- statWidgets();
+ clearTimeout(stat_timeout);
getChart();
getGraphData(selected.selData);
+ statWidgets();
});
// @supports session storage
function supportsSessionStorage() {