luci-mod-network: wireless.js: fix parsing of wep key slot cfgvalue
[oweals/luci.git] / modules / luci-mod-network / htdocs / luci-static / resources / view / network / wireless.js
index e5213ff139fc3e02db6e50685979d1eea39e14d5..8049c4a3a65df891d2ccc900c644abf1da492e41 100644 (file)
@@ -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) {