summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-06-25 20:47:00 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-06-25 20:47:00 +0000
commit3654347541e4da8511045d8f6f83954789cf6ac4 (patch)
tree7177fb488aaabab173619882be47d785492ea5c1 /modules/admin-full/luasrc
parent88f82cb438715b017287d37ba68903fdcf41c833 (diff)
modules/admin-full: only display back button in changes page if a redir url is given
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r--modules/admin-full/luasrc/view/admin_uci/changes.htm4
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 c26d8cc5b8..159a7b5f0a 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">