luci-base: validation.js: fix "unique" validator
authorJo-Philipp Wich <jo@mein.io>
Fri, 22 Nov 2019 07:42:58 +0000 (08:42 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 22 Nov 2019 07:44:41 +0000 (08:44 +0100)
commit0a58281a332b953e5b23d1b93b188adcfee3985f
tree6d01493eb5f4a5d920c619bd64cb40a2c0cdfa80
parentc0b9fbbd9affc6fe81707c0979424a6428bd12c5
luci-base: validation.js: fix "unique" validator

Previous refactoring renamed the "data-type" attribute of widget markup
containers to "data-widget", breaking the "unique" validator as it relies
on it to lookup options.

Fixes: #3341
Fixes: 13e9e3e9e ("treewide: fix "Unhandled token" errors with Lua CBI maps")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4f0d67a2897d6592cb0f7562fa042dd4987fd7eb)
modules/luci-base/htdocs/luci-static/resources/validation.js