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:28:39 +0000 (18:28 +0100)
commit7a3f0dd6d4509555bf65ba5e32e6168910a43cee
tree7ac0b5a50a5072324eca31d9cdd276e6a69aa0bb
parent9866be520487563cffca038ed91cd2d81a523279
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>
(backported from commit 13e9e3e9e8633c7a54fe5fec1481e9df62594982)
modules/luci-base/luasrc/view/cbi/cell_valueheader.htm
modules/luci-base/luasrc/view/cbi/tblsection.htm
themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css