From 03c77dafe3cfb922b995adfe9c0f8a75c98a18af Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 27 Nov 2020 20:54:18 +0100 Subject: treewide: transition div tables to actual table markup Modern browsers allow decomposing table markup equally well as nested div constructs, therefor migrate our
table markup to actual 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 --- .../luci-static/resources/view/system/advanced_reboot.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'applications/luci-app-advanced-reboot/htdocs') diff --git a/applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js b/applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js index 762d65f669..e2c12e6a46 100644 --- a/applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js +++ b/applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js @@ -198,12 +198,12 @@ return view.extend({ body.appendChild(E('h3', device_info.device_name + _(' Partitions'))); if (device_info.device_name) { - var partitions_table = E('div', { 'class': 'table' }, [ - E('div', { 'class': 'tr table-titles' }, [ - E('div', { 'class': 'th' }, [ _('Partition') ]), - E('div', { 'class': 'th' }, [ _('Status') ]), - E('div', { 'class': 'th' }, [ _('Firmware') ]), - E('div', { 'class': 'th' }, [ _('Reboot') ]) + var partitions_table = E('table', { 'class': 'table' }, [ + E('tr', { 'class': 'tr table-titles' }, [ + E('th', { 'class': 'th' }, [ _('Partition') ]), + E('th', { 'class': 'th' }, [ _('Status') ]), + E('th', { 'class': 'th' }, [ _('Firmware') ]), + E('th', { 'class': 'th' }, [ _('Reboot') ]) ]) ]); -- cgit v1.2.3