From 13e9e3e9e8633c7a54fe5fec1481e9df62594982 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 16 Nov 2019 18:23:43 +0100 Subject: treewide: fix "Unhandled token" errors with Lua CBI maps The `data-type` attribute is used to bind datatype validators to a widget while some templates used the same attribute to denote the name of the underlying widget. Change the `data-type` attributes referring to the widget name to `data-widget` in order to stop the JS token error spam. Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/bootstrap/mobile.css | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'themes/luci-theme-bootstrap/htdocs/luci-static') diff --git a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/mobile.css b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/mobile.css index 2d4f856602..466573b26f 100644 --- a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/mobile.css +++ b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/mobile.css @@ -71,8 +71,8 @@ header h3 a, header .brand { word-wrap: normal; } - .td[data-type="button"], - .td[data-type="fvalue"] { + .td[data-widget="button"], + .td[data-widget="fvalue"] { flex: 1 1 17%; text-align: left; } @@ -145,12 +145,12 @@ header h3 a, header .brand { flex-basis: 100%; } - .td.cbi-value-field[data-type="dvalue"] { + .td.cbi-value-field[data-widget="dvalue"] { flex-basis: 50%; } - .td.cbi-value-field[data-type="button"], - .td.cbi-value-field[data-type="fvalue"] { + .td.cbi-value-field[data-widget="button"], + .td.cbi-value-field[data-widget="fvalue"] { flex-basis: 25%; text-align: left; } @@ -311,7 +311,7 @@ header h3 a, header .brand { flex-basis: 50% !important; } - [data-page="admin-status-processes"] .td[data-type="button"] { + [data-page="admin-status-processes"] .td[data-widget="button"] { flex-basis: 33% !important; } @@ -320,9 +320,9 @@ header h3 a, header .brand { flex-basis: 25% !important; } - [data-page="admin-system-fstab"] .td[data-type="button"]::before, - [data-page="admin-system-startup"] .td[data-type="button"]::before, - [data-page="admin-status-processes"] .td[data-type="button"]::before { + [data-page="admin-system-fstab"] .td[data-widget="button"]::before, + [data-page="admin-system-startup"] .td[data-widget="button"]::before, + [data-page="admin-status-processes"] .td[data-widget="button"]::before { display: none; } } -- cgit v1.2.3