diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-09-20 09:36:23 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-20 09:36:23 +0200 |
commit | 5986124c13811b55754ec8800f280bc7221160b1 (patch) | |
tree | 86d38cbe74f0b5df19e823ad0c6e13eeb3d6d09a | |
parent | 0113171c649787d6f757076402002a3b279e0708 (diff) |
luci-mod-network: wireless.js: fix parsing of wep key slot cfgvalue
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js index e5213ff13..8049c4a3a 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js @@ -1265,7 +1265,7 @@ return L.view.extend({ o.cfgvalue = function(section_id) { var slot = +uci.get('wireless', section_id, 'key'); - return (slot >= 1 && slot <= 4) ? slot : 1; + return String((slot >= 1 && slot <= 4) ? slot : 1); }; o.write = function(section_id, value) { |