2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

fhemweb.js: fix perlSyntaxCheck for device with dot (Forum #20444)

git-svn-id: https://svn.fhem.de/fhem/trunk@11319 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-04-26 19:15:03 +00:00
parent 0584bdc6a8
commit 89a9c49cf8

View File

@ -497,8 +497,8 @@ FW_inlineModify() // Do not generate a new HTML page upon pressing modify
$("div input.psc[type=submit]").click(function(e){
e.preventDefault();
var newDef = typeof cm !== 'undefined' ? cm.getValue()
: $(this).closest("form").find("textarea").val();
var newDef = typeof cm !== 'undefined' ?
cm.getValue() : $(this).closest("form").find("textarea").val();
var cmd = $(this).attr("name")+"="+$(this).attr("value")+" "+newDef;
if( newDef == undefined ) {
@ -507,7 +507,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();
if($(".dval[informid="+devName+"-"+arg+"]").length == 0) {
var ifid = devName.replace(/\./g, '\\.');
if($(".dval[informid="+ifid+"-"+arg+"]").length == 0) {
console.log(this);
$(this).unbind('click').click();// No element found to replace
return;