mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 10:31:55 +08:00
luci-base: addressing this.vstack[0] is undefined.
Signed-off-by: Jan Pazdziora <jan.pazdziora@code.adelton.com>
This commit is contained in:
committed by
Paul Donald
parent
a67d68353b
commit
abaa26aa57
@@ -130,7 +130,7 @@ return view.extend({
|
||||
o.placeholder = _('Unnamed zone');
|
||||
o.modalonly = true;
|
||||
o.rmempty = false;
|
||||
o.datatype = L.hasSystemFeature('firewall4') ? '' : 'and(uciname,maxlength(11))';
|
||||
o.datatype = L.hasSystemFeature('firewall4') ? 'uciname' : 'and(uciname,maxlength(11))';
|
||||
o.write = function(section_id, formvalue) {
|
||||
var cfgvalue = this.cfgvalue(section_id);
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ var CBIZoneSelect = form.ListValue.extend({
|
||||
display_items: this.display_size || this.size || 3,
|
||||
dropdown_items: this.dropdown_size || this.size || 5,
|
||||
validate: L.bind(this.validate, this, section_id),
|
||||
datatype: L.hasSystemFeature('firewall4') ? '' : 'and(uciname,maxlength(11))',
|
||||
datatype: L.hasSystemFeature('firewall4') ? 'uciname' : 'and(uciname,maxlength(11))',
|
||||
create: !this.nocreate,
|
||||
create_markup: '' +
|
||||
'<li data-value="{{value}}">' +
|
||||
|
||||
Reference in New Issue
Block a user