treewide: fix "Unhandled token" errors with Lua CBI maps
authorJo-Philipp Wich <jo@mein.io>
Sat, 16 Nov 2019 17:23:43 +0000 (18:23 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 16 Nov 2019 17:26:27 +0000 (18:26 +0100)
commit2390e7297601767ddc7f25ab5fb606500117ffea
treeb247e10e47192a09b70cf9be2ecd1469713b5c12
parentbc716e497398be70d7913905fa918236fc16581f
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>
(cherry picked from commit 13e9e3e9e8633c7a54fe5fec1481e9df62594982)
modules/luci-base/htdocs/luci-static/resources/form.js
modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm
modules/luci-compat/luasrc/view/cbi/tblsection.htm
themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/mobile.css
themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css