From 3c1e9cc69dafe47c4561c7066067d570ccd0bf98 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Tue, 20 Feb 2018 22:17:13 +0000 Subject: [PATCH] fhemweb.js: avoid referencing comma-room in treeMenu (Forum #84532) git-svn-id: https://svn.fhem.de/fhem/trunk@16237 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/fhemweb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index 755cdffdf..8e9c3eb09 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -834,7 +834,7 @@ FW_treeMenu() $("div#menu table.room").each(function(){ // one loop per Block var t = this, ma = {}; $(t).find("td > div > a > span").each(function(e){ - var span = this, spanTxt = $(span).text(); + var span = this, spanTxt = $(span).text().replace(/,/g,''); var ta = spanTxt.split("->"); if(ta.length <= 1) return;