luci-base: {ui,form}.js: allow passing additional CSS classes to modals
authorJo-Philipp Wich <jo@mein.io>
Thu, 13 Jun 2019 13:01:00 +0000 (15:01 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:36:26 +0000 (15:36 +0200)
commitdc2b38cb6f44331b686caa8280dbde0b13c0d45d
tree0136be3bc0083a480159993898c8486be43d79e7
parent1605f29b6f6ebeaf00a27d556bad708bd1d2e836
luci-base: {ui,form}.js: allow passing additional CSS classes to modals

Add the ability to pass additional CSS classes to modal dialogs and
make use of this facility in form.js to annotate CBI map modals.

This can be used later by themes to apply additional CSS rules.

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