From e0988b089be0e33d64c62339cfdd90755b6dbd79 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 20 Jan 2016 13:45:27 +0100 Subject: [PATCH] luci-mod-admin-full: fix device selection in wireless and bandwidth realtime stats Signed-off-by: Jo-Philipp Wich --- .../luasrc/view/admin_status/bandwidth.htm | 5 ++--- .../luasrc/view/admin_status/wireless.htm | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_status/bandwidth.htm b/modules/luci-mod-admin-full/luasrc/view/admin_status/bandwidth.htm index 04da3c1239..33bbee7843 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_status/bandwidth.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_status/bandwidth.htm @@ -14,8 +14,7 @@ end end - local curdev = luci.dispatcher.context.requestpath - curdev = curdev[#curdev] ~= "bandwidth" and curdev[#curdev] or devices[1] + local curdev = luci.http.formvalue("dev") or devices[1] -%> <%+header%> @@ -268,7 +267,7 @@ 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 f185926104..aa658ff0cb 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_status/wireless.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_status/wireless.htm @@ -14,8 +14,7 @@ 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%> @@ -318,7 +317,7 @@ -- 2.30.2