luci-base: ui.js: apply disabled attribute to toplevel dynlist node
authorJo-Philipp Wich <jo@mein.io>
Thu, 16 Apr 2020 11:19:35 +0000 (13:19 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 16 Apr 2020 11:30:35 +0000 (13:30 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/ui.js

index 21d86fe3dc6a526a2f2b6515d98ea27695b42767..57f8e2bff4f2625e25edef37729de0fcb6bace15 100644 (file)
@@ -2126,7 +2126,8 @@ var UIDynamicList = UIElement.extend(/** @lends LuCI.ui.DynamicList.prototype */
        render: function() {
                var dl = E('div', {
                        'id': this.options.id,
-                       'class': 'cbi-dynlist'
+                       'class': 'cbi-dynlist',
+                       'disabled': this.options.disabled ? '' : null
                }, E('div', { 'class': 'add-item' }));
 
                if (this.choices) {