2
0
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:
rudolfkoenig 2015-01-27 11:46:58 +00:00
parent dd37554335
commit 84ab8301bb

View File

@ -2272,17 +2272,17 @@ sub
FW_Notify($$) FW_Notify($$)
{ {
my ($ntfy, $dev) = @_; 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}; my $h = $ntfy->{inform};
return undef if(!$h); return undef if(!$h);
my $dn = $dev->{NAME}; 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") { if($h->{type} eq "raw") {
return undef if($dn !~ m/$h->{filter}/); return undef if($dn !~ m/$h->{filter}/);
} else { # Status } else { # Status