* luci/themes: fix query string functionality

This commit is contained in:
Jo-Philipp Wich 2008-06-14 14:31:37 +00:00
parent 855b7582d3
commit 3eabbcc191
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ local function submenu(prefix, node)
<% for j, v in pairs(index) do
local nnode = node.nodes[v.name]
local href = controller .. prefix .. v.name
href = (v.query) and href .. luci.http.build_querystring(v.query) or href
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
%>
<li>
<span<% if nnode._menu_selected then %> class="yellowtext"<%end%>><a href="<%=href%>"><%=nnode.title%></a></span>

View file

@ -75,7 +75,7 @@ local function submenu(prefix, node)
<% for j, v in pairs(index) do
local nnode = node.nodes[v.name]
local href = controller .. prefix .. v.name
href = (v.query) and href .. luci.http.build_querystring(v.query) or href
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
%>
<li>
<span<% if nnode._menu_selected then %> class="blacktext"<%end%>><a href="<%=href%>"><%=nnode.title%></a></span>