projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a0af7d7
)
libs/web: fix delete action in tblsections, fix extedit buttons
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 15 Feb 2012 22:08:51 +0000
(22:08 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 15 Feb 2012 22:08:51 +0000
(22:08 +0000)
libs/web/luasrc/view/cbi/tblsection.htm
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/view/cbi/tblsection.htm
b/libs/web/luasrc/view/cbi/tblsection.htm
index bee9bf80cb3b329dfe0a6c6c085145554a8dadf6..d928791167a20422323404311be81c53062bd409 100644
(file)
--- 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
<%- 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
<%- 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 %>
<%- 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 -%>
<%- end -%>
</td>
<%- end -%>