diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-11-16 18:23:43 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-11-16 18:25:52 +0100 |
commit | 13e9e3e9e8633c7a54fe5fec1481e9df62594982 (patch) | |
tree | 3e57a63b3645c289c1b495d7587cf7f020a2090d /themes/luci-theme-openwrt | |
parent | eaa193336fc7b1f4bf2b8a51c120308d90e86e95 (diff) |
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 <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-openwrt')
-rw-r--r-- | themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css b/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css index fe4640071..faaaf220a 100644 --- a/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css +++ b/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css @@ -933,8 +933,8 @@ div.cbi-optionals { margin-left: 3px; } -.th[data-type="button"], .td[data-type="button"], -.th[data-type="fvalue"], .td[data-type="fvalue"] { +.th[data-widget="button"], .td[data-widget="button"], +.th[data-widget="fvalue"], .td[data-widget="fvalue"] { flex: 1 1 2em; text-align: center; } @@ -1828,8 +1828,8 @@ select + .cbi-button { word-wrap: normal; } - .td[data-type="button"], - .td[data-type="fvalue"] { + .td[data-widget="button"], + .td[data-widget="fvalue"] { flex: 1 1 12.5%; text-align: left; } @@ -1972,12 +1972,12 @@ select + .cbi-button { 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; } @@ -2038,8 +2038,8 @@ select + .cbi-button { margin-top: .5em; } - #cbi-firewall-rule .td[data-type="fvalue"], - #cbi-firewall-redirect .td[data-type="fvalue"] { + #cbi-firewall-rule .td[data-widget="fvalue"], + #cbi-firewall-redirect .td[data-widget="fvalue"] { display: none; } } |