diff --git a/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/statistics.volt b/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/statistics.volt index 487fc27d6..52be520da 100644 --- a/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/statistics.volt +++ b/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/statistics.volt @@ -43,14 +43,16 @@ POSSIBILITY OF SUCH DAMAGE. $('#updatelist').empty(); ajaxGet(url = "/api/haproxy/statistics/info/", sendData={}, callback = function (data, status) { + $("#infolist > tbody").empty(); + $("#infolist > thead").hide(); if (status == "success") { - $("#infolist").html("{{ lang._('Name') }}{{ lang._('Value') }}"); + $("#infolist > thead").show(); $.each(data, function (key, value) { - $('#infolist').append(''+key+'' + + $('#infolist > tbody').append(''+key+'' + ""+value+""); }); } else { - $("#infolist").html("
{{ lang._('The statistics could not be fetched. Is HAProxy running?') }}"); + $("#infolist > tbody").append("
{{ lang._('The statistics could not be fetched. Is HAProxy running?') }}

"); } $('#processing-dialog').modal('hide'); } @@ -170,6 +172,14 @@ POSSIBILITY OF SUCH DAMAGE.
+ + + + + + + +
{{ lang._('Name') }}{{ lang._('Value') }}