diff options
author | pmelange <isprotejesvalkata@gmail.com> | 2018-11-18 14:26:23 +0100 |
---|---|---|
committer | pmelange <isprotejesvalkata@gmail.com> | 2018-12-06 20:57:35 +0100 |
commit | d2bda6c34bada854893ddf935ed3794cfab2579b (patch) | |
tree | 4d1d9d54b4d494577a0d35b117e08275be1bd0b7 /applications/luci-app-olsr/luasrc/view/status-olsr/neighbors.htm | |
parent | 4974ddb1f1d2e9d8870f6b907876c39a55a436a1 (diff) |
luci-app-olsr: reenable the "auto refresh" feature
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
Diffstat (limited to 'applications/luci-app-olsr/luasrc/view/status-olsr/neighbors.htm')
-rw-r--r-- | applications/luci-app-olsr/luasrc/view/status-olsr/neighbors.htm | 16 |
1 files changed, 13 insertions, 3 deletions
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 = '<div class="tr cbi-section-table-cell">' + + '<div class="th cbi-section-table-cell"><%:Neighbour IP%></div>' + + '<div class="th cbi-section-table-cell"><%:Hostname%></div>' + + '<div class="th cbi-section-table-cell"><%:Interface%></div>' + + '<div class="th cbi-section-table-cell"><%:Local interface IP%></div>' + + '<div class="th cbi-section-table-cell">LQ</div>' + + '<div class="th cbi-section-table-cell">NLQ</div>' + + '<div class="th cbi-section-table-cell">ETX</div>' + + '<div class="th cbi-section-table-cell">SNR</div>' + + '</div>'; + for (var idx = 0; idx < info.length; idx++) { var neigh = info[idx]; @@ -91,7 +101,7 @@ end '<div class="td cbi-section-table-cell left" style="background-color:%s">%s</div>' + '<div class="td cbi-section-table-cell left" style="background-color:%s">%s</div>' + '<div class="td cbi-section-table-cell left" style="background-color:%s">%s</div>' + - '<div class="td cbi-section-table-cell left" style="background-color:%s title="Signal: %s Noise: %s">%s</div>' + + '<div class="td cbi-section-table-cell left" style="background-color:%s" title="Signal: %s Noise: %s">%s</div>' + '</div>', 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 <fieldset class="cbi-section"> <legend><%:Overview of currently established OLSR connections%></legend> - <div class="table cbi-section-table"> + <div class="table cbi-section-table" id="olsr_neigh_table"> <div class="tr cbi-section-table-cell"> <div class="th cbi-section-table-cell"><%:Neighbour IP%></div> <div class="th cbi-section-table-cell"><%:Hostname%></div> |