From: Jo-Philipp Wich Date: Thu, 16 Apr 2020 11:19:35 +0000 (+0200) Subject: luci-base: ui.js: apply disabled attribute to toplevel dynlist node X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=791741f0fb204260f7a965bdf42eb0723f90c410;p=oweals%2Fluci.git luci-base: ui.js: apply disabled attribute to toplevel dynlist node Signed-off-by: Jo-Philipp Wich (cherry picked from commit 46d31efc7351231def16be1024eff95c5b792f94) --- diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index d5d4d914b..d0045007b 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) {