From e1057e6d9b7e14d7aeb646c7c5d6a067ef107162 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Wed, 2 Dec 2020 21:44:45 +0000 Subject: [PATCH] fhemweb.js: user replace instead of replaceAll (Forum #77432) git-svn-id: https://svn.fhem.de/fhem/trunk@23282 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 1ecc56b48..e7fea43c4 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -309,11 +309,11 @@ FW_jqueryReadyFn() $("#content > #workbench").html(data); var mtype = $("#content > #workbench a[name]").attr("name"), aTag; if(mtype) { - var mv = (mtype+""+val).replaceAll(/[^a-z0-9_]/ig,'_'); + var mv = (""+mtype+val).replace(/[^a-z0-9_]/ig,'_'); aTag = $("#content > #workbench").find("a[name="+mv+"]"); } if(!$(aTag).length) { // old style syntax without type - var v = (val).replaceAll(/[^a-z0-9_]/ig,'_'); + var v = (val).replace(/[^a-z0-9_]/ig,'_'); aTag = $("#content > #workbench").find("a[name="+v+"]"); } if($(aTag).length) {