From: Florian Eckert Date: Tue, 23 Apr 2024 11:43:42 +0000 (+0200) Subject: luci-mod-status: wireless: add missing css cbi-* class elements X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8f90688104b7ac7f9df61ee700b4a80814bac64f;p=project%2Fluci.git luci-mod-status: wireless: add missing css cbi-* class elements Signed-off-by: Florian Eckert --- diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js index 5942eaf06b..f5b3404382 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js @@ -241,7 +241,7 @@ return view.extend({ svg2 = data[1], wifidevs = data[2]; - var v = E('div', {}, E('div')); + var v = E('div', { 'class': 'cbi-map', 'id': 'map' }, E('div')); for (var i = 0; i < wifidevs.length; i++) { var ifname = wifidevs[i].getIfname(); @@ -252,7 +252,7 @@ return view.extend({ var csvg1 = svg1.cloneNode(true), csvg2 = svg2.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 }, [ csvg1, E('div', { 'class': 'right' }, E('small', { 'id': 'scale' }, '-')), E('br'), @@ -296,7 +296,8 @@ return view.extend({ E('td', { 'class': 'td right top' }, E('strong', {}, [ _('Peak:') ])), E('td', { 'class': 'td', 'id': 'rate_bw_peak' }, [ '0 Mbit/s' ]) ]) - ]) + ]), + E('div', {'class': 'cbi-section-create'}) ])); this.updateGraph(ifname, csvg1, [ null, { line: 'rssi', offset: 155 }, { line: 'noise', offset: 155 } ], function(svg, info) {