diff options
author | Helge Mader <ma@dev.tdt.de> | 2021-03-12 10:48:29 +0100 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2021-08-11 08:48:41 +0200 |
commit | 58447640eb4704ce5bed612f84cb86b84afa17fa (patch) | |
tree | 8d02de5d7e507f63b6365c04f4ea342bac637f73 /modules/luci-compat/luasrc/view/cbi/tblsection.htm | |
parent | 4314d8f3300825a9c72e249250a60da860da5a7f (diff) |
luci-base: prevent empty field for adding new entry
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'modules/luci-compat/luasrc/view/cbi/tblsection.htm')
-rw-r--r-- | modules/luci-compat/luasrc/view/cbi/tblsection.htm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-compat/luasrc/view/cbi/tblsection.htm b/modules/luci-compat/luasrc/view/cbi/tblsection.htm index 048eb22c41..1cba660884 100644 --- a/modules/luci-compat/luasrc/view/cbi/tblsection.htm +++ b/modules/luci-compat/luasrc/view/cbi/tblsection.htm @@ -192,9 +192,9 @@ end <div class="cbi-section-error"><%:Invalid%></div> <%- end %> <div> - <input type="text" class="cbi-section-create-name" id="cbi.cts.<%=self.config%>.<%=self.sectiontype%>.<%=section%>" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>.<%=section%>" data-type="uciname" data-optional="true" /> + <input type="text" class="cbi-section-create-name" id="cbi.cts.<%=self.config%>.<%=self.sectiontype%>.<%=section%>" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>.<%=section%>" 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 %> |