luci-mod-network: wireless.js: fix parsing of wep key slot cfgvalue
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
0113171c64
commit
5986124c13
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue