aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/rspamd.js
diff options
context:
space:
mode:
Diffstat (limited to 'interface/js/rspamd.js')
-rw-r--r--interface/js/rspamd.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js
index 0311044b1..15b64d213 100644
--- a/interface/js/rspamd.js
+++ b/interface/js/rspamd.js
@@ -323,7 +323,9 @@
var stat_w = [];
$.each(data, function (i, item) {
var widget = '';
- if (i == 'auth') {} else if (i == 'error') {} else if (i == 'version') {
+ if (i == 'auth') {}
+ else if (i == 'error') {}
+ else if (i == 'version') {
widget = '<div class="left"><strong>' + item + '</strong>' +
i + '</div>';
$(widget).appendTo(widgets);
@@ -353,6 +355,7 @@
$(item).appendTo(widgets);
});
$('#statWidgets .left,#statWidgets .right').wrapAll('<li class="stat-box pull-right"><div class="widget"></div></li>');
+ $('#statWidgets').find('li.pull-right').appendTo('#statWidgets');
$(widgets).show();
stat_timeout = window.setTimeout(statWidgets, 10000);
}