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:
parent
756c739af4
commit
c1be5273b6
1 changed files with 2 additions and 6 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue