diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-11-27 20:54:18 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-11-27 21:36:40 +0100 |
commit | 03c77dafe3cfb922b995adfe9c0f8a75c98a18af (patch) | |
tree | 27bb29481b28cd8caed7d582510fd59c8cdf0e39 /applications/luci-app-travelmate/htdocs/luci-static | |
parent | c850608dcf58e1872692ca48af7985e528651e80 (diff) |
treewide: transition div tables to actual table markup
Modern browsers allow decomposing table markup equally well as nested div
constructs, therefor migrate our <div> table markup to actual <table> tags
but keep the old table/tr/th/td CSS classes for now to allow for a smooth
theme transition.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-travelmate/htdocs/luci-static')
-rw-r--r-- | applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js b/applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js index 72d37dc1fb..2e149ad9b5 100644 --- a/applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js +++ b/applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js @@ -227,7 +227,7 @@ return view.extend({ 'click': ui.createHandlerFn(this, handleRemove, section_id) }, _('Del')) ]; - return E('div', { 'class': 'td middle cbi-section-actions' }, E('div', btns)); + return E('td', { 'class': 'td middle cbi-section-actions' }, E('div', btns)); }; o = s.taboption('travelmate', form.Flag, '_enabled', _('Enabled')); @@ -566,14 +566,14 @@ return view.extend({ modal 'scan' dialog */ s.handleScan = function(radio) { - var table = E('div', { 'class': 'table' }, [ - E('div', { 'class': 'tr table-titles' }, [ - E('div', { 'class': 'th col-1 middle left' }, _('Strength')), - E('div', { 'class': 'th col-1 middle left hide-xs' }, _('Channel')), - E('div', { 'class': 'th col-2 middle left' }, _('SSID')), - E('div', { 'class': 'th col-2 middle left' }, _('BSSID')), - E('div', { 'class': 'th col-3 middle left' }, _('Encryption')), - E('div', { 'class': 'th cbi-section-actions right' }, '\xa0') + var table = E('table', { 'class': 'table' }, [ + E('tr', { 'class': 'tr table-titles' }, [ + E('th', { 'class': 'th col-1 middle left' }, _('Strength')), + E('th', { 'class': 'th col-1 middle left hide-xs' }, _('Channel')), + E('th', { 'class': 'th col-2 middle left' }, _('SSID')), + E('th', { 'class': 'th col-2 middle left' }, _('BSSID')), + E('th', { 'class': 'th col-3 middle left' }, _('Encryption')), + E('th', { 'class': 'th cbi-section-actions right' }, '\xa0') ]) ]); cbi_update_table(table, [], E('em', { class: 'spinning' }, _('Starting wireless scan on \'' + radio + '\'...'))); |