summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-02-15 22:08:51 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-02-15 22:08:51 +0000
commit1c10042f8c0cd55bcc90a98f1f62b31974179d4e (patch)
tree7810c8d563ace3e582f8ca4872576a6eb7c3fb43 /libs/web/luasrc/view
parenta0af7d7afedc243f9b3f5105399c071fafcad163 (diff)
libs/web: fix delete action in tblsections, fix extedit buttons
Diffstat (limited to 'libs/web/luasrc/view')
-rw-r--r--libs/web/luasrc/view/cbi/tblsection.htm6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/web/luasrc/view/cbi/tblsection.htm b/libs/web/luasrc/view/cbi/tblsection.htm
index bee9bf80cb..d928791167 100644
--- a/libs/web/luasrc/view/cbi/tblsection.htm
+++ b/libs/web/luasrc/view/cbi/tblsection.htm
@@ -96,13 +96,13 @@ end
<%- if self.extedit then -%>
<input class="cbi-button cbi-button-edit" type="button" value="<%:Edit%>"
<%- if type(self.extedit) == "string" then
- %> onclick="window.location='<%=self.extedit:format(section)%>'"
+ %> onclick="location.href='<%=self.extedit:format(section)%>'"
<%- elseif type(self.extedit) == "function" then
- %> onclick="window.location='<%=self:extedit(section)%>'"
+ %> onclick="location.href='<%=self:extedit(section)%>'"
<%- end
%> alt="<%:Edit%>" title="<%:Edit%>" />
<%- end; if self.addremove then %>
- <input class="cbi-button cbi-button-remove" type="button" value="<%:Delete%>" onclick="this.form.cbi_state='del-section'; return true" name="cbi.rts.<%=self.config%>.<%=k%>" alt="<%:Delete%>" title="<%:Delete%>" />
+ <input class="cbi-button cbi-button-remove" type="submit" value="<%:Delete%>" onclick="this.form.cbi_state='del-section'; return true" name="cbi.rts.<%=self.config%>.<%=k%>" alt="<%:Delete%>" title="<%:Delete%>" />
<%- end -%>
</td>
<%- end -%>