2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 16:46:35 +00:00

fhemweb.js: escape readings with dot in the name (Forum #68142)

git-svn-id: https://svn.fhem.de/fhem/trunk@13549 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-02-28 20:19:19 +00:00
parent 6a51ae390e
commit 6be9dfa2ea

View File

@ -609,8 +609,8 @@ FW_inlineModify() // Do not generate a new HTML page upon pressing modify
cmd = $(div).attr("cmd");
var sel = $(this).closest("form").find("select");
var arg = $(sel).val();
var ifid = devName.replace(/\./g, '\\.');
if($(".dval[informid="+ifid+"-"+arg+"]").length == 0) {
var ifid = (devName+"-"+arg).replace(/\./g, '\\.');
if($(".dval[informid="+ifid+"]").length == 0) {
console.log(this);
$(this).unbind('click').click();// No element found to replace, reload
return;