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/status/include/70_ddns.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'applications/luci-app-ddns/htdocs/luci-static/resources/view/status/include') diff --git a/applications/luci-app-ddns/htdocs/luci-static/resources/view/status/include/70_ddns.js b/applications/luci-app-ddns/htdocs/luci-static/resources/view/status/include/70_ddns.js index 13e8fba217..d3b35d8691 100644 --- a/applications/luci-app-ddns/htdocs/luci-static/resources/view/status/include/70_ddns.js +++ b/applications/luci-app-ddns/htdocs/luci-static/resources/view/status/include/70_ddns.js @@ -22,13 +22,13 @@ return baseclass.extend({ render: function(data) { var services = data[0]; - var table = E('div', { 'class': 'table' }, [ - E('div', { 'class': 'tr table-titles' }, [ - E('div', { 'class': 'th' }, _('Configuration')), - E('div', { 'class': 'th' }, _('Next Update')), - E('div', { 'class': 'th' }, _('Lookup Hostname')), - E('div', { 'class': 'th' }, _('Registered IP')), - E('div', { 'class': 'th' }, _('Network')) + var table = E('table', { 'class': 'table' }, [ + E('tr', { 'class': 'tr table-titles' }, [ + E('th', { 'class': 'th' }, _('Configuration')), + E('th', { 'class': 'th' }, _('Next Update')), + E('th', { 'class': 'th' }, _('Lookup Hostname')), + E('th', { 'class': 'th' }, _('Registered IP')), + E('th', { 'class': 'th' }, _('Network')) ]) ]); -- cgit v1.2.3