luci-base: cbi.js: code cleanups
authorJo-Philipp Wich <jo@mein.io>
Thu, 11 Oct 2018 05:56:36 +0000 (07:56 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 11 Oct 2018 05:58:51 +0000 (07:58 +0200)
commit8270f10f167acd00bb27ea747ef573919f21f1d1
treed1b427028b3ae754cfc18e183e17b243923fc0e6
parent5f324264d798c642889f95b51091ffefb09085a5
luci-base: cbi.js: code cleanups

 - unify code style
 - add matchesElem() helper
 - replace nodeName checks with selector tests
 - replace className manipulations with classList operations

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js