luci-base: ui.js: add required CSS class to dynlist widget
authorJo-Philipp Wich <jo@mein.io>
Tue, 17 May 2022 19:47:33 +0000 (21:47 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 5 Dec 2022 09:46:17 +0000 (10:46 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d6dbedd9e2c77f44be0f64ee8128401a293f77f4)

modules/luci-base/htdocs/luci-static/resources/ui.js

index 447bcbae09afb3539b532fdda62e3f07a7b19f25..2c4a9bf39561524671c46e2e68093fc002776c31 100644 (file)
@@ -2208,7 +2208,7 @@ var UIDynamicList = UIElement.extend(/** @lends LuCI.ui.DynamicList.prototype */
                        'id': this.options.id,
                        'class': 'cbi-dynlist',
                        'disabled': this.options.disabled ? '' : null
-               }, E('div', { 'class': 'add-item' }));
+               }, E('div', { 'class': 'add-item control-group' }));
 
                if (this.choices) {
                        if (this.options.placeholder != null)
@@ -4654,7 +4654,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                                                        E('button', {
                                                                'class': 'btn cbi-button-action important',
                                                                'click': resolveFn.bind(null, true)
-                                                       }, [ _('Apply and revert on connectivity loss') ]), ' ',
+                                                       }, [ _('Apply with revert after connectivity loss') ]), ' ',
                                                        E('button', {
                                                                'class': 'btn cbi-button-negative important',
                                                                'click': resolveFn.bind(null, false)