summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-20 09:36:23 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-20 09:36:23 +0200
commit5986124c13811b55754ec8800f280bc7221160b1 (patch)
tree86d38cbe74f0b5df19e823ad0c6e13eeb3d6d09a /modules/luci-mod-network/htdocs/luci-static/resources
parent0113171c649787d6f757076402002a3b279e0708 (diff)
luci-mod-network: wireless.js: fix parsing of wep key slot cfgvalue
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static/resources')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js2
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 e5213ff139..8049c4a3a6 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) {