git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
f423025
)
luci-base: network.js: simplify getWifiNetidBySid
author
Sergey Ponomarev
<redacted>
Sat, 23 Sep 2023 07:34:35 +0000
(10:34 +0300)
committer
Sergey Ponomarev
<redacted>
Sat, 23 Sep 2023 07:34:35 +0000
(10:34 +0300)
Remove unused variables i and netid and reuse radioname
Signed-off-by: Sergey Ponomarev <redacted>
modules/luci-base/htdocs/luci-static/resources/network.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/network.js
b/modules/luci-base/htdocs/luci-static/resources/network.js
index 2568017c26d6613c5fc109b6132c87226fd43c00..84a855b0acb5cb3ef0f845f905738d9bb9c91358 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/network.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/network.js
@@
-210,8
+210,8
@@
function getWifiNetidBySid(sid) {
var s = uci.get('wireless', sid);
if (s != null && s['.type'] == 'wifi-iface') {
var radioname = s.device;
- if (typeof(
s.devic
e) == 'string') {
- var
i = 0, netid = null,
sections = uci.sections('wireless', 'wifi-iface');
+ if (typeof(
radionam
e) == 'string') {
+ var sections = uci.sections('wireless', 'wifi-iface');
for (var i = 0, n = 0; i < sections.length; i++) {
if (sections[i].device != s.device)
continue;
git clone https://git.99rst.org/PROJECT