]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Improve uptime responsive 1209/head
authorAnna Stakhova <anna@rspamd.com>
Wed, 30 Nov 2016 13:52:00 +0000 (13:52 +0000)
committerAnna Stakhova <anna@rspamd.com>
Wed, 30 Nov 2016 13:52:00 +0000 (13:52 +0000)
interface/js/rspamd.js

index 3a38a326b904a79e3a3a95c72607fc7e0ddf4741..54a261a65d2f64cdd601991c5f85a1a55bb21536 100644 (file)
             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);
                 $(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);
         }