From 791741f0fb204260f7a965bdf42eb0723f90c410 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 16 Apr 2020 13:19:35 +0200 Subject: [PATCH] luci-base: ui.js: apply disabled attribute to toplevel dynlist node Signed-off-by: Jo-Philipp Wich (cherry picked from commit 46d31efc7351231def16be1024eff95c5b792f94) --- modules/luci-base/htdocs/luci-static/resources/ui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index d5d4d914b8..d0045007b9 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -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) { -- 2.30.2