mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-28 15:04:51 +00:00
fhemweb.js: fix dropdown setting, where space is involved (Forum #116178)
git-svn-id: https://svn.fhem.de/fhem/trunk@23239 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1cafd490e7
commit
6c07e00b40
@ -1471,9 +1471,9 @@ FW_createSelect(elName, devName, vArr, currVal, set, params, cmd)
|
|||||||
var vHash = {};
|
var vHash = {};
|
||||||
for(var j=1; j < vArr.length; j++) {
|
for(var j=1; j < vArr.length; j++) {
|
||||||
var o = document.createElement('option');
|
var o = document.createElement('option');
|
||||||
if(!vArr[j].match(/&#[0-9a-f]{1,4};/i))
|
if(!vArr[j].match(/&#[0-9a-f]{1,4};/i)) // how to reproduce?
|
||||||
o.text = o.value = vArr[j].replace(/#/g," ");
|
o.text = o.value = vArr[j].replace(/#/g," ");
|
||||||
vHash[vArr[j]] = 1;
|
vHash[o.value] = 1;
|
||||||
newEl.options[j-1] = o;
|
newEl.options[j-1] = o;
|
||||||
}
|
}
|
||||||
if(currVal)
|
if(currVal)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user