From d2bda6c34bada854893ddf935ed3794cfab2579b Mon Sep 17 00:00:00 2001 From: pmelange Date: Sun, 18 Nov 2018 14:26:23 +0100 Subject: luci-app-olsr: reenable the "auto refresh" feature Signed-off-by: pmelange --- .../luci-app-olsr/luasrc/view/status-olsr/neighbors.htm | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'applications/luci-app-olsr/luasrc/view/status-olsr/neighbors.htm') diff --git a/applications/luci-app-olsr/luasrc/view/status-olsr/neighbors.htm b/applications/luci-app-olsr/luasrc/view/status-olsr/neighbors.htm index 262326b490..8cdda14916 100644 --- a/applications/luci-app-olsr/luasrc/view/status-olsr/neighbors.htm +++ b/applications/luci-app-olsr/luasrc/view/status-olsr/neighbors.htm @@ -56,7 +56,17 @@ end var nt = document.getElementById('olsr_neigh_table'); if (nt) { - var s = ''; + var s = '
' + + '
<%:Neighbour IP%>
' + + '
<%:Hostname%>
' + + '
<%:Interface%>
' + + '
<%:Local interface IP%>
' + + '
LQ
' + + '
NLQ
' + + '
ETX
' + + '
SNR
' + + '
'; + for (var idx = 0; idx < info.length; idx++) { var neigh = info[idx]; @@ -91,7 +101,7 @@ end '
%s
' + '
%s
' + '
%s
' + - '
%s
' + + '
%s
' + '', neigh.dfgcolor, neigh.ifn, neigh.dfgcolor, neigh.lip, neigh.dfgcolor, neigh.lq, neigh.dfgcolor, neigh.nlq, neigh.color, neigh.cost, neigh.snr_color, neigh.signal, neigh.noise, neigh.snr || '?' ); @@ -111,7 +121,7 @@ end
<%:Overview of currently established OLSR connections%> -
+
<%:Neighbour IP%>
<%:Hostname%>
-- cgit v1.2.3