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=46d31efc7351231def16be1024eff95c5b792f94;p=oweals%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 21d86fe3d..57f8e2bff 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) {