summaryrefslogtreecommitdiffhomepage
path: root/themes/freifunk-generic/luasrc/view
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2010-11-18 03:07:36 +0000
committerManuel Munz <freifunk@somakoma.de>2010-11-18 03:07:36 +0000
commit9888d28aa6db8412c01f3adac62240a8647d6a22 (patch)
treef8186a3ce143ecc95c1f6cff314a4ecacbea2034 /themes/freifunk-generic/luasrc/view
parent8dde0803afb55f3621d0b2d31d7f3af476d42e3f (diff)
themes/freifunk-generic: fix problem with save&apply
Diffstat (limited to 'themes/freifunk-generic/luasrc/view')
-rw-r--r--themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm13
1 files changed, 6 insertions, 7 deletions
diff --git a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
index a7a947ef8d..5f0069f911 100644
--- a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
+++ b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
@@ -179,13 +179,12 @@ if tree.nodes[category] and tree.nodes[category].ucidata then
end
end
-%>
-<ul id="savemenu" class="dropdowns">
-<li><% if ucic > 0 then %><a class="warning" href="<%=controller%>/<%=category%>/uci/changes/"><%:unsavedchanges%>: <%=ucic%></a><%
-submenu("/" .. category .. "/uci/", tree.nodes[category].nodes["uci"])
-else -%>
-<a href="#"><%:changes%>: 0</a><% end -%>
-</li>
-</ul><% end %>
+
+<div id="savemenu">
+ <% if ucic > 0 then %>
+ <a class="warning" href="<%=controller%>/<%=category%>/uci/changes/?redir=<%=luci.http.urlencode(tree.nodes[category].nodes["uci"].query)%>"><%:Unsaved Changes%>: <%=ucic%></a>
+ <% end -%>
+</div><% end %>
<div class="clear"></div>
</div>