diff options
Diffstat (limited to 'libs/web/luasrc/view/cbi/tsection.htm')
-rw-r--r-- | libs/web/luasrc/view/cbi/tsection.htm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/web/luasrc/view/cbi/tsection.htm b/libs/web/luasrc/view/cbi/tsection.htm index 9361b6d41e..549934303d 100644 --- a/libs/web/luasrc/view/cbi/tsection.htm +++ b/libs/web/luasrc/view/cbi/tsection.htm @@ -50,7 +50,8 @@ $Id$ <input type="submit" class="cbi-button cbi-button-add" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value="<%:Add%>" /> <%- else -%> <% if self.invalid_cts then -%><div class="cbi-section-error"><% end %> - <input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" /> + <input type="text" class="cbi-section-create-name" id="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" /> + <script type="text/javascript">cbi_validate_field('cbi.cts.<%=self.config%>.<%=self.sectiontype%>', true, 'uciname');</script> <input type="submit" class="cbi-button cbi-button-add" onclick="this.form.cbi_state='add-section'; return true" value="<%:Add%>" /> <% if self.invalid_cts then -%> <br /><%:Invalid%></div> |