From: Jan Pazdziora Date: Thu, 9 Jan 2025 20:00:55 +0000 (+0100) Subject: luci-base: Enforce maximal firewall zone length in the Create / Assign scenario as... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a075566dbb5147a4311cd24f46a173222c9172cf;p=project%2Fluci.git luci-base: Enforce maximal firewall zone length in the Create / Assign scenario as well. Signed-off-by: Jan Pazdziora --- diff --git a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js index 0ba07afcde..4c9cd6924e 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -148,6 +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: 'and(uciname,maxlength(11))', create: !this.nocreate, create_markup: '' + '
  • ' +