luci-base: addressing this.vstack[0] is undefined.

Signed-off-by: Jan Pazdziora <jan.pazdziora@code.adelton.com>
This commit is contained in:
Jan Pazdziora
2025-01-10 23:02:40 +01:00
committed by Paul Donald
parent a67d68353b
commit abaa26aa57
2 changed files with 2 additions and 2 deletions
@@ -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}}">' +