diff options
author | Florian Eckert <fe@dev.tdt.de> | 2024-04-23 13:40:56 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2024-04-23 14:14:25 +0200 |
commit | f4868c3426965def268f008d71d10a86855ff1bc (patch) | |
tree | 2f935d6fc99c930d1b3c02ff183b5adcc13b3107 /modules/luci-mod-status | |
parent | d14fbdb3cf394b121a6ec695e0b4008e2d241110 (diff) |
luci-mod-status: bandwith: add missing css cbi-* class elements
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'modules/luci-mod-status')
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/bandwidth.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/bandwidth.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/bandwidth.js index 4bdc9e2675..7d13679d81 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/bandwidth.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/bandwidth.js @@ -247,7 +247,7 @@ return view.extend({ var svg = data[0], devs = data[1]; - var v = E('div', {}, E('div')); + var v = E('div', { 'class': 'cbi-map', 'id': 'map' }, E('div')); for (var i = 0; i < devs.length; i++) { var ifname = devs[i].getName(); @@ -257,7 +257,7 @@ return view.extend({ var csvg = svg.cloneNode(true); - v.firstElementChild.appendChild(E('div', { 'data-tab': ifname, 'data-tab-title': ifname }, [ + v.firstElementChild.appendChild(E('div', { 'class': 'cbi-section', 'data-tab': ifname, 'data-tab-title': ifname }, [ csvg, E('div', { 'class': 'right' }, E('small', { 'id': 'scale' }, '-')), E('br'), @@ -283,7 +283,8 @@ return view.extend({ E('td', { 'class': 'td right top' }, E('strong', {}, [ _('Peak:') ])), E('td', { 'class': 'td', 'id': 'tx_bw_peak' }, rate(0, true)) ]) - ]) + ]), + E('div', {'class': 'cbi-section-create'}) ])); this.updateGraph(ifname, csvg, [ { line: 'rx', counter: true }, null, { line: 'tx', counter: true } ], function(svg, info) { |