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),
|
||||
size: this.size,
|
||||
sort: this.keylist,
|
||||
optional: this.rmempty || this.optional,
|
||||
optional: this.optional,
|
||||
placeholder: this.placeholder,
|
||||
validate: L.bind(this.validate, this, section_id)
|
||||
});
|
||||
|
|
|
@ -243,7 +243,7 @@ var UISelect = UIElement.extend({
|
|||
'multiple': this.options.multi ? '' : null
|
||||
}));
|
||||
|
||||
if (this.options.optional)
|
||||
if (this.options.optional || this.choices.hasOwnProperty(''))
|
||||
frameEl.lastChild.appendChild(E('option', {
|
||||
'value': '',
|
||||
'selected': (this.values.length == 0 || this.values[0] == '') ? '' : null
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
id = cbid,
|
||||
name = cbid,
|
||||
sort = self.keylist,
|
||||
multi = self.multiple,
|
||||
multiple = self.multiple,
|
||||
datatype = self.datatype,
|
||||
optional = self.optional or self.rmempty,
|
||||
readonly = self.readonly,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
sort = self.keylist,
|
||||
widget = self.widget,
|
||||
datatype = self.datatype,
|
||||
optional = self.optional or self.rmempty,
|
||||
optional = self.optional,
|
||||
placeholder = self.placeholder
|
||||
}
|
||||
}))%>></div>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
name = cbid,
|
||||
size = self.size,
|
||||
sort = self.keylist,
|
||||
multi = true,
|
||||
multiple = true,
|
||||
widget = self.widget,
|
||||
datatype = self.datatype,
|
||||
optional = self.optional or self.rmempty,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue