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:25:52 +0000 (18:25 +0100)
commit13e9e3e9e8633c7a54fe5fec1481e9df62594982
tree3e57a63b3645c289c1b495d7587cf7f020a2090d
parenteaa193336fc7b1f4bf2b8a51c120308d90e86e95
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>
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