diff --git a/FHEM/91_notify.pm b/FHEM/91_notify.pm index 40924d6bc..8cf424575 100644 --- a/FHEM/91_notify.pm +++ b/FHEM/91_notify.pm @@ -275,6 +275,8 @@ notify_fhemwebFn($$$$) $ret .= ""; } } + $ret .= ''; my @et = devspec2array("TYPE=eventTypes"); if(!@et) { diff --git a/FHEM/92_FileLog.pm b/FHEM/92_FileLog.pm index bf20b8d53..22385644e 100644 --- a/FHEM/92_FileLog.pm +++ b/FHEM/92_FileLog.pm @@ -566,6 +566,8 @@ FileLog_fhemwebFn($$$$) # DETAIL only from here on my $hash = $defs{$d}; + $ret .= ''; $ret .= "
Regexp parts"; $ret .= "
"; my @ra = split(/\|/, $hash->{REGEXP}); diff --git a/www/pgm2/fhemweb.js b/www/pgm2/fhemweb.js index db09a1b90..fc5c047bf 100644 --- a/www/pgm2/fhemweb.js +++ b/www/pgm2/fhemweb.js @@ -2130,6 +2130,30 @@ FW_getSVG(emb) return undefined; } +function +FW_checkNotifydev(reName) +{ + var internals={}; + $("table.internals tr td div.dname").each(function(){ + internals[$(this).html()] = this; + }); + if(!internals[reName] || internals.NOTIFYDEV) + return; + $(internals[reName]) + .html(reName+" (!)") + .css("cursor","pointer") + .click(function(){ + var val = $(internals[reName]).closest("tr").find("div[informid]").text(); + FW_okDialog("Could not optimize the regexp:How I tried (notifyRegexpCheck):"); + FW_cmd(FW_root+'?cmd={notifyRegexpCheck("'+val+'")}&XHR=1', + function(res){ + $("#FW_okDialog pre").html(res); + }); + + }); +} + /* =pod