luci-base: ui.js: apply disabled attribute to toplevel dynlist node
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
616d2a61e4
commit
46d31efc73
1 changed files with 2 additions and 1 deletions
|
@ -2126,7 +2126,8 @@ var UIDynamicList = UIElement.extend(/** @lends LuCI.ui.DynamicList.prototype */
|
||||||
render: function() {
|
render: function() {
|
||||||
var dl = E('div', {
|
var dl = E('div', {
|
||||||
'id': this.options.id,
|
'id': this.options.id,
|
||||||
'class': 'cbi-dynlist'
|
'class': 'cbi-dynlist',
|
||||||
|
'disabled': this.options.disabled ? '' : null
|
||||||
}, E('div', { 'class': 'add-item' }));
|
}, E('div', { 'class': 'add-item' }));
|
||||||
|
|
||||||
if (this.choices) {
|
if (this.choices) {
|
||||||
|
|
Loading…
Reference in a new issue