X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=themes%2Fopenwrt-light%2Fluasrc%2Fview%2Fthemes%2Fopenwrt-light%2Fheader.htm;h=31b1ad017537a31de6a7a184f4e31b0dd51be0d9;hb=b11c6ecbeea88f782cef9c0441b3927d0c736a56;hp=0d9d1bd2e5f2060bbfb54d00e2842fda64e56cf3;hpb=dbfd045b9b0d690ee778f85c9356869794c2d750;p=project%2Fluci.git diff --git a/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm b/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm index 0d9d1bd2e..31b1ad017 100644 --- a/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm +++ b/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm @@ -36,7 +36,7 @@ require("luci.http").prepare_content("text/html") -%> - + @@ -55,7 +55,7 @@ require("luci.http").prepare_content("text/html") var lis = document.getElementById("mainmenu").getElementsByTagName("LI"); var divs = document.getElementById("mainmenu").getElementsByTagName("DIV"); - + for( var i = 0; i < lis.length; i++ ) ie_hover( lis[i] ); for( var i = 0; i < divs.length; i++ ) ie_hover( divs[i] ); } @@ -117,7 +117,7 @@ local function submenu(prefix, node) href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href %>
  • - class="active"<%end%>><%=nnode.title%> + class="active"<%end%>><%=nnode.title%> <%- submenu(prefix .. v.name .. "/", nnode) %>
  • <%- end %> @@ -161,9 +161,7 @@ end <% if tree.nodes[category] and tree.nodes[category].ucidata then local ucic = 0 - require("luci.model.uci") - luci.model.uci.set_savedir(luci.model.uci.savedir_default) - for i, j in pairs(luci.model.uci.changes()) do + for i, j in pairs(require("luci.model.uci").cursor():changes()) do for k, l in pairs(j) do for m, n in pairs(l) do ucic = ucic + 1;