projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-mod-admin-full: fix device selection in wireless and bandwidth realtime stats
[project/luci.git]
/
modules
/
luci-mod-admin-full
/
luasrc
/
view
/
admin_status
/
wireless.htm
diff --git
a/modules/luci-mod-admin-full/luasrc/view/admin_status/wireless.htm
b/modules/luci-mod-admin-full/luasrc/view/admin_status/wireless.htm
index
6aa0a81
..
aa658ff
100644
(file)
--- a/
modules/luci-mod-admin-full/luasrc/view/admin_status/wireless.htm
+++ b/
modules/luci-mod-admin-full/luasrc/view/admin_status/wireless.htm
@@
-1,5
+1,5
@@
<%#
<%#
- Copyright 2011 Jo-Philipp Wich <
xm@subsignal
.org>
+ Copyright 2011 Jo-Philipp Wich <
jow@openwrt
.org>
Licensed to the public under the Apache License 2.0.
-%>
Licensed to the public under the Apache License 2.0.
-%>
@@
-14,8
+14,7
@@
end
end
end
end
- local curdev = luci.dispatcher.context.requestpath
- curdev = curdev[#curdev] ~= "wireless" and curdev[#curdev] or devices[1]
+ local curdev = luci.http.formvalue("dev") or devices[1]
-%>
<%+header%>
-%>
<%+header%>
@@
-314,11
+313,11
@@
);
//]]></script>
);
//]]></script>
-<h2
><a id="content" name="content"><%:Realtime Wireless%></a
></h2>
+<h2
name="content"><%:Realtime Wireless%
></h2>
<ul class="cbi-tabmenu">
<% for _, dev in ipairs(devices) do %>
<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>
<% end %>
</ul>