themes/freifunk-generic: fix problem with save&apply
authorManuel Munz <freifunk@somakoma.de>
Thu, 18 Nov 2010 03:07:36 +0000 (03:07 +0000)
committerManuel Munz <freifunk@somakoma.de>
Thu, 18 Nov 2010 03:07:36 +0000 (03:07 +0000)
themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm

index a7a947ef8d4d1d2c59b2db7b731a3e43b362ab26..5f0069f911be8c40fe48cde7911ea5d92a743f79 100644 (file)
@@ -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>