mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
33_readingsGroup.pm: trigger resorting after all updates
git-svn-id: https://svn.fhem.de/fhem/trunk@12760 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8a4064a2d0
commit
6b7101faaf
@ -1125,7 +1125,7 @@ readingsGroup_2html($;$)
|
||||
++$cell_column;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if( $cell_row == $header_rows ) {
|
||||
$ret .= "</thead>";
|
||||
$ret .= "<tbody>";
|
||||
@ -1133,7 +1133,7 @@ readingsGroup_2html($;$)
|
||||
++$cell_row;
|
||||
}
|
||||
$ret .= "</tbody>" if( $header_rows && !$in_footer );
|
||||
|
||||
|
||||
if( $disable > 0 ) {
|
||||
$ret .= "<tfoot>" if( !$in_footer );
|
||||
$in_footer = 1;
|
||||
@ -1425,11 +1425,6 @@ readingsGroup_Notify($$)
|
||||
}
|
||||
}
|
||||
|
||||
if( %triggers ) {
|
||||
my $sort_column = AttrVal( $hash->{NAME}, 'sortColumn', undef );
|
||||
DoTrigger( $hash->{NAME}, "sort: $sort_column" ) if( defined($sort_column) )
|
||||
}
|
||||
|
||||
readingsBeginUpdate($hash) if( $hash->{alwaysTrigger} && $hash->{alwaysTrigger} > 1 );
|
||||
foreach my $trigger (keys %triggers) {
|
||||
DoTrigger( $name, "$trigger: <html>$triggers{$trigger}</html>" );
|
||||
@ -1489,6 +1484,11 @@ readingsGroup_Notify($$)
|
||||
}
|
||||
readingsEndUpdate($hash,1) if( $hash->{alwaysTrigger} && $hash->{alwaysTrigger} > 1 );
|
||||
|
||||
if( %triggers ) {
|
||||
my $sort_column = AttrVal( $hash->{NAME}, 'sortColumn', undef );
|
||||
DoTrigger( $hash->{NAME}, "sort: $sort_column" ) if( defined($sort_column) )
|
||||
}
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user