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 --- modules/luci-compat/luasrc/view/cbi/tblsection.htm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/luci-compat/luasrc/view/cbi/tblsection.htm') diff --git a/modules/luci-compat/luasrc/view/cbi/tblsection.htm b/modules/luci-compat/luasrc/view/cbi/tblsection.htm index 11c2206d8c..1e067edf38 100644 --- a/modules/luci-compat/luasrc/view/cbi/tblsection.htm +++ b/modules/luci-compat/luasrc/view/cbi/tblsection.htm @@ -52,7 +52,7 @@ function render_titles() for i, k in ipairs(self.children) do if not k.optional then %>