1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00

Fix link to interfaces in multipath graph

This commit is contained in:
Ycarus 2018-06-30 17:36:23 +02:00
parent 756c739af4
commit c1be5273b6

View file

@ -35,11 +35,7 @@
end
end
local curdev = luci.dispatcher.context.requestpath
curdev = curdev[#curdev] ~= "bandwidth" and curdev[#curdev] or devices[1]
if curdev == "" then
curdev = "all"
end
local curdev = luci.http.formvalue("dev") or "all"
-%>
<%+header%>
@ -769,7 +765,7 @@
<ul class="cbi-tabmenu">
<% for _, dev in ipairs(devices) do %>
<li class="cbi-tab<%= dev == curdev and "" or "-disabled" %>"><a href="<%=pcdata(dev)%>"><%=pcdata(dev)%></a></li>
<li class="cbi-tab<%= dev == curdev and "" or "-disabled" %>"><a href="?dev=<%=pcdata(dev)%>"><%=pcdata(dev)%></a></li>
<% end %>
</ul>