summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-11-27 20:54:18 +0100
committerJo-Philipp Wich <jo@mein.io>2020-11-27 21:36:40 +0100
commit03c77dafe3cfb922b995adfe9c0f8a75c98a18af (patch)
tree27bb29481b28cd8caed7d582510fd59c8cdf0e39 /modules/luci-mod-system/htdocs/luci-static/resources
parentc850608dcf58e1872692ca48af7985e528651e80 (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 'modules/luci-mod-system/htdocs/luci-static/resources')
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js14
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/startup.js10
2 files changed, 12 insertions, 12 deletions
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js
index e0a9226562..f8c9dfd129 100644
--- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js
+++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js
@@ -186,13 +186,13 @@ return view.extend({
};
o.render = L.bind(function(view, section_id) {
- var table = E('div', { 'class': 'table' }, [
- E('div', { 'class': 'tr table-titles' }, [
- E('div', { 'class': 'th' }, _('Filesystem')),
- E('div', { 'class': 'th' }, _('Mount Point')),
- E('div', { 'class': 'th center' }, _('Available')),
- E('div', { 'class': 'th center' }, _('Used')),
- E('div', { 'class': 'th' }, _('Unmount'))
+ var table = E('table', { 'class': 'table' }, [
+ E('tr', { 'class': 'tr table-titles' }, [
+ E('th', { 'class': 'th' }, _('Filesystem')),
+ E('th', { 'class': 'th' }, _('Mount Point')),
+ E('th', { 'class': 'th center' }, _('Available')),
+ E('th', { 'class': 'th center' }, _('Used')),
+ E('th', { 'class': 'th' }, _('Unmount'))
])
]);
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/startup.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/startup.js
index ae92ce88b6..4d1defbd2b 100644
--- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/startup.js
+++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/startup.js
@@ -71,11 +71,11 @@ return view.extend({
initList = data[1],
rows = [], list = [];
- var table = E('div', { 'class': 'table' }, [
- E('div', { 'class': 'tr table-titles' }, [
- E('div', { 'class': 'th' }, _('Start priority')),
- E('div', { 'class': 'th' }, _('Initscript')),
- E('div', { 'class': 'th nowrap cbi-section-actions' })
+ var table = E('table', { 'class': 'table' }, [
+ E('tr', { 'class': 'tr table-titles' }, [
+ E('th', { 'class': 'th' }, _('Start priority')),
+ E('th', { 'class': 'th' }, _('Initscript')),
+ E('th', { 'class': 'th nowrap cbi-section-actions' })
])
]);