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: http://git.lede-project.org./?a=commitdiff_plain;h=46d31efc7351231def16be1024eff95c5b792f94;p=project%2Fluci.git luci-base: ui.js: apply disabled attribute to toplevel dynlist node Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 21d86fe3dc..57f8e2bff4 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) {