luci-base: luci.js: tweak CSS classes
authorJo-Philipp Wich <jo@mein.io>
Mon, 23 Mar 2020 20:39:48 +0000 (21:39 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 23 Mar 2020 20:41:16 +0000 (21:41 +0100)
 - use .btn CSS class for Save & Apply button
 - use .control-group CSS class for page action buttons

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

index 8d056ec03d3e7d9afcdaa6dbe1b1ee0181e25882..fd4c584886a25a48d30499fa537a608efbb88729 100644 (file)
                                        1: [ _('Apply unchecked') ]
                                }, {
                                        classes: {
-                                               0: 'cbi-button cbi-button-apply important',
-                                               1: 'cbi-button cbi-button-negative important'
+                                               0: 'btn cbi-button cbi-button-apply important',
+                                               1: 'btn cbi-button cbi-button-negative important'
                                        },
                                        click: L.ui.createHandlerFn(this, 'handleSaveApply')
                                }).render() : E([]);
 
                                if (this.handleSaveApply || this.handleSave || this.handleReset) {
-                                       footer.appendChild(E('div', { 'class': 'cbi-page-actions' }, [
+                                       footer.appendChild(E('div', { 'class': 'cbi-page-actions control-group' }, [
                                                saveApplyBtn, ' ',
                                                this.handleSave ? E('button', {
                                                        'class': 'cbi-button cbi-button-save',