From 6c07e00b4085498376269187dea3768af1307ee9 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 26 Nov 2020 17:17:49 +0000 Subject: [PATCH] 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 --- fhem/www/pgm2/fhemweb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index b1edca1c2..c9f1abc0b 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -1471,9 +1471,9 @@ FW_createSelect(elName, devName, vArr, currVal, set, params, cmd) var vHash = {}; for(var j=1; j < vArr.length; j++) { 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," "); - vHash[vArr[j]] = 1; + vHash[o.value] = 1; newEl.options[j-1] = o; } if(currVal)