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, 7 May 2020 17:40:49 +0000 (19:40 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 46d31efc7351231def16be1024eff95c5b792f94)

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

index d5d4d914b897c23881744353fc479e26cd286bdf..d0045007b9d1cb5806e39084b6d903e1444ec3a7 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) {