* luci/themes: fix query string functionality
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 14 Jun 2008 14:31:37 +0000 (14:31 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 14 Jun 2008 14:31:37 +0000 (14:31 +0000)
themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm

index 7f625fd..9f27f98 100644 (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>
index d1b7518..6852b38 100644 (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>