From 84ab8301bb5cdf7a5b54985b7954aa78f7c0cb92 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 27 Jan 2015 11:46:58 +0000 Subject: [PATCH] 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 --- fhem/FHEM/01_FHEMWEB.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index 53cd40543..fa7be0337 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -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