diff options
author | Anna Stakhova <anna@rspamd.com> | 2016-11-30 13:52:00 +0000 |
---|---|---|
committer | Anna Stakhova <anna@rspamd.com> | 2016-11-30 13:52:00 +0000 |
commit | 7abace5041f889a0428e22330b4c756d2ef3a170 (patch) | |
tree | 71b40323d9f4f2d29b7a0bf1036adf92daedbb39 /interface | |
parent | a9ce4a751f09f86de88759b3d167e6d4709cdf69 (diff) | |
download | rspamd-7abace5041f889a0428e22330b4c756d2ef3a170.tar.gz rspamd-7abace5041f889a0428e22330b4c756d2ef3a170.zip |
[WebUI] Improve uptime responsive
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/rspamd.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index 3a38a326b..54a261a65 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); } |