diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-06-25 20:47:00 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-06-25 20:47:00 +0000 |
commit | 3654347541e4da8511045d8f6f83954789cf6ac4 (patch) | |
tree | 7177fb488aaabab173619882be47d785492ea5c1 | |
parent | 88f82cb438715b017287d37ba68903fdcf41c833 (diff) |
modules/admin-full: only display back button in changes page if a redir url is given
-rw-r--r-- | modules/admin-full/luasrc/view/admin_uci/changes.htm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/view/admin_uci/changes.htm b/modules/admin-full/luasrc/view/admin_uci/changes.htm index c26d8cc5b..159a7b5f0 100644 --- a/modules/admin-full/luasrc/view/admin_uci/changes.htm +++ b/modules/admin-full/luasrc/view/admin_uci/changes.htm @@ -25,11 +25,13 @@ $Id$ <% end %> <div class="cbi-page-actions"> + <% local r = luci.http.formvalue("redir"); if r and #r > 0 then %> <div style="float:left"> - <form class="inline" method="get" action="<%=luci.util.pcdata(luci.http.formvalue("redir"))%>"> + <form class="inline" method="get" action="<%=luci.util.pcdata(r)%>"> <input class="cbi-button cbi-button-link" style="float:left; margin:0" type="submit" value="<%:Back%>" /> </form> </div> + <% end %> <div style="text-align:right"> <form class="inline" method="get" action="<%=controller%>/admin/uci/apply"> |