1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2019-07-30 11:15:26 +02:00
parent b2139f72b0
commit 509718c5cd
5 changed files with 5 additions and 5 deletions

View file

@ -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)
});

View file

@ -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

View file

@ -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,

View file

@ -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>

View file

@ -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,