diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-21 20:51:32 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-21 20:51:32 +0000 |
commit | 63089ef8be99dbbc4e64e859359e6cd9a562dcf1 (patch) | |
tree | eb3b65a44d0344d8a91d1d8b983fdb9e7cdf1338 /libs/web/luasrc/view/cbi/tsection.htm | |
parent | 98b4da49b0f7af5bc52e8a7da8eaa759e5fda0e2 (diff) |
libs/web: annotate form object with cbi state when using section add/remove buttons
Diffstat (limited to 'libs/web/luasrc/view/cbi/tsection.htm')
-rw-r--r-- | libs/web/luasrc/view/cbi/tsection.htm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/web/luasrc/view/cbi/tsection.htm b/libs/web/luasrc/view/cbi/tsection.htm index 0fa285c16..9361b6d41 100644 --- a/libs/web/luasrc/view/cbi/tsection.htm +++ b/libs/web/luasrc/view/cbi/tsection.htm @@ -21,7 +21,7 @@ $Id$ <% local isempty = true for i, k in ipairs(self:cfgsections()) do -%> <% if self.addremove then -%> <div class="cbi-section-remove right"> - <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="<%:Delete%>" /> + <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" onclick="this.form.cbi_state='del-section'; return true" value="<%:Delete%>" /> </div> <%- end %> @@ -51,7 +51,7 @@ $Id$ <%- 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="submit" class="cbi-button cbi-button-add" value="<%:Add%>" /> + <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> <%- end %> |