luci-base: form.js: add CSS class to invalid option dismiss button
authorJo-Philipp Wich <jo@mein.io>
Mon, 27 Jul 2020 15:05:35 +0000 (17:05 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 28 Jul 2020 18:57:04 +0000 (20:57 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js

index 0a8f87f4b80377a46c8e5efb88e54be769fc2134..89d92c8f9d2f9c7593f66450d2f1397950c29b83 100644 (file)
@@ -603,7 +603,7 @@ var CBIMap = CBIAbstractElement.extend(/** @lends LuCI.form.Map.prototype */ {
                                                E('p', {}, [ _('An error occurred while saving the form:') ]),
                                                E('p', {}, [ E('em', { 'style': 'white-space:pre' }, [ e.message ]) ]),
                                                E('div', { 'class': 'right' }, [
-                                                       E('button', { 'click': ui.hideModal }, [ _('Dismiss') ])
+                                                       E('button', { 'class': 'btn', 'click': ui.hideModal }, [ _('Dismiss') ])
                                                ])
                                        ]);
                                }