mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update luci-base
This commit is contained in:
parent
b2139f72b0
commit
509718c5cd
5 changed files with 5 additions and 5 deletions
|
@ -1460,7 +1460,7 @@ var CBIListValue = CBIValue.extend({
|
||||||
id: this.cbid(section_id),
|
id: this.cbid(section_id),
|
||||||
size: this.size,
|
size: this.size,
|
||||||
sort: this.keylist,
|
sort: this.keylist,
|
||||||
optional: this.rmempty || this.optional,
|
optional: this.optional,
|
||||||
placeholder: this.placeholder,
|
placeholder: this.placeholder,
|
||||||
validate: L.bind(this.validate, this, section_id)
|
validate: L.bind(this.validate, this, section_id)
|
||||||
});
|
});
|
||||||
|
|
|
@ -243,7 +243,7 @@ var UISelect = UIElement.extend({
|
||||||
'multiple': this.options.multi ? '' : null
|
'multiple': this.options.multi ? '' : null
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (this.options.optional)
|
if (this.options.optional || this.choices.hasOwnProperty(''))
|
||||||
frameEl.lastChild.appendChild(E('option', {
|
frameEl.lastChild.appendChild(E('option', {
|
||||||
'value': '',
|
'value': '',
|
||||||
'selected': (this.values.length == 0 || this.values[0] == '') ? '' : null
|
'selected': (this.values.length == 0 || this.values[0] == '') ? '' : null
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
id = cbid,
|
id = cbid,
|
||||||
name = cbid,
|
name = cbid,
|
||||||
sort = self.keylist,
|
sort = self.keylist,
|
||||||
multi = self.multiple,
|
multiple = self.multiple,
|
||||||
datatype = self.datatype,
|
datatype = self.datatype,
|
||||||
optional = self.optional or self.rmempty,
|
optional = self.optional or self.rmempty,
|
||||||
readonly = self.readonly,
|
readonly = self.readonly,
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
sort = self.keylist,
|
sort = self.keylist,
|
||||||
widget = self.widget,
|
widget = self.widget,
|
||||||
datatype = self.datatype,
|
datatype = self.datatype,
|
||||||
optional = self.optional or self.rmempty,
|
optional = self.optional,
|
||||||
placeholder = self.placeholder
|
placeholder = self.placeholder
|
||||||
}
|
}
|
||||||
}))%>></div>
|
}))%>></div>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
name = cbid,
|
name = cbid,
|
||||||
size = self.size,
|
size = self.size,
|
||||||
sort = self.keylist,
|
sort = self.keylist,
|
||||||
multi = true,
|
multiple = true,
|
||||||
widget = self.widget,
|
widget = self.widget,
|
||||||
datatype = self.datatype,
|
datatype = self.datatype,
|
||||||
optional = self.optional or self.rmempty,
|
optional = self.optional or self.rmempty,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue