2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

10_ZWave.pm: change JS Variable name (Forum #83144)

git-svn-id: https://svn.fhem.de/fhem/trunk@15958 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-01-22 18:22:48 +00:00
parent 78bc41506b
commit e18940a7f1

View File

@ -5162,7 +5162,7 @@ ZWave_fhemwebFn($$$$)
return return
"<div id='ZWHelp' class='makeTable help'></div>$pl". "<div id='ZWHelp' class='makeTable help'></div>$pl".
'<script type="text/javascript">'. '<script type="text/javascript">'.
"var d='$d', FW_tp='$FW_tp';" . <<'JSEND' "var zwaveDevice='$d', FW_tp='$FW_tp';" . <<'JSEND'
$(document).ready(function() { $(document).ready(function() {
$("div#ZWHelp").insertBefore("div.makeTable.internals"); // Move $("div#ZWHelp").insertBefore("div.makeTable.internals"); // Move
$("div.detLink.ZWPepper").insertAfter("div.detLink.devSpecHelp"); $("div.detLink.ZWPepper").insertAfter("div.detLink.devSpecHelp");
@ -5172,7 +5172,7 @@ ZWave_fhemwebFn($$$$)
$("div#ZWHelp").html(val); $("div#ZWHelp").html(val);
} }
$(this).change(function(){ $(this).change(function(){
FW_queryValue('{ZWave_helpFn("'+d+'","'+$(this).val()+'")}', FW_queryValue('{ZWave_helpFn("'+zwaveDevice+'","'+$(this).val()+'")}',
$(this).get(0)); $(this).get(0));
}); });
}); });