summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-compat/luasrc/view/cbi/tsection.htm
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2021-08-11 09:35:24 +0200
committerGitHub <noreply@github.com>2021-08-11 09:35:24 +0200
commitd81564e064c4b2d51db0900e50ac91a39382e55c (patch)
tree4e9b204ca33b98b73bdb785b61ef3216bb8ccc4d /modules/luci-compat/luasrc/view/cbi/tsection.htm
parentb5af813318316e26592971c73a10a455493de7d5 (diff)
parent58447640eb4704ce5bed612f84cb86b84afa17fa (diff)
Merge pull request #5154 from TDT-AG/pr/20210628-luci-compat
luci-base: prevent empty field for adding new entry
Diffstat (limited to 'modules/luci-compat/luasrc/view/cbi/tsection.htm')
-rw-r--r--modules/luci-compat/luasrc/view/cbi/tsection.htm4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-compat/luasrc/view/cbi/tsection.htm b/modules/luci-compat/luasrc/view/cbi/tsection.htm
index 45e51cc69f..703e1ff328 100644
--- a/modules/luci-compat/luasrc/view/cbi/tsection.htm
+++ b/modules/luci-compat/luasrc/view/cbi/tsection.htm
@@ -42,9 +42,9 @@
<div class="cbi-section-error"><%:Invalid%></div>
<%- end %>
<div>
- <input type="text" class="cbi-section-create-name" id="cbi.cts.<%=self.config%>.<%=self.sectiontype%>." name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>." data-type="uciname" data-optional="true" />
+ <input type="text" class="cbi-section-create-name" id="cbi.cts.<%=self.config%>.<%=self.sectiontype%>." name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>." data-type="uciname" data-optional="true" onkeyup="cbi_validate_named_section_add(this)"/>
</div>
- <input class="btn cbi-button cbi-button-add" type="submit" onclick="this.form.cbi_state='add-section'; return true" value="<%:Add%>" title="<%:Add%>" />
+ <input class="btn cbi-button cbi-button-add" type="submit" onclick="this.form.cbi_state='add-section'; return true" value="<%:Add%>" title="<%:Add%>" disabled=""/>
<%- end %>
</div>
<%- end %>