diff options
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static/resources/view/status/bandwidth.js')
-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) { |