mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
01_FHEMWEB.pm: Fix garbage in event log (Forum #32865)
git-svn-id: https://svn.fhem.de/fhem/trunk@7742 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dd37554335
commit
84ab8301bb
@ -2272,17 +2272,17 @@ sub
|
||||
FW_Notify($$)
|
||||
{
|
||||
my ($ntfy, $dev) = @_;
|
||||
|
||||
if( $dev->{NAME} eq "global" ) {
|
||||
my $vs = int(@structChangeHist) ? 'visible' : 'hidden';
|
||||
FW_directNotify( "#FHEMWEB:$ntfy->{NAME}",
|
||||
"\$('#saveCheck').css('visibility','$vs')", '');
|
||||
}
|
||||
|
||||
my $h = $ntfy->{inform};
|
||||
return undef if(!$h);
|
||||
|
||||
my $dn = $dev->{NAME};
|
||||
if($dn eq "global" && $h->{type} =~ m/status/) {
|
||||
my $vs = int(@structChangeHist) ? 'visible' : 'hidden';
|
||||
my $data = FW_longpollInfo($h->{fmt},
|
||||
"#FHEMWEB:$ntfy->{NAME}","\$('#saveCheck').css('visibility','$vs')","");
|
||||
addToWritebuffer($ntfy, $data."\n");
|
||||
}
|
||||
|
||||
if($h->{type} eq "raw") {
|
||||
return undef if($dn !~ m/$h->{filter}/);
|
||||
} else { # Status
|
||||
|
Loading…
Reference in New Issue
Block a user