mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
01_FHEMWEB.pm: Implement FW_addDetailToSummary (Forum #71772)
git-svn-id: https://svn.fhem.de/fhem/trunk@14244 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2c44663d99
commit
f9ac569711
@ -1665,7 +1665,7 @@ FW_alias($)
|
||||
sub
|
||||
FW_makeDeviceLine($$$$$)
|
||||
{
|
||||
my( $d,$row,$extPage,$nameDisplay,$usuallyAtEnd) = @_;;
|
||||
my ($d,$row,$extPage,$nameDisplay,$usuallyAtEnd) = @_;
|
||||
my $rf = ($FW_room ? "&room=$FW_room" : ""); # stay in the room
|
||||
|
||||
FW_pF "\n<tr class=\"%s\">", ($row&1)?"odd":"even";
|
||||
@ -1822,6 +1822,15 @@ FW_showRoom()
|
||||
$extPage{group} = $g;
|
||||
|
||||
FW_makeDeviceLine($d,$row,\%extPage,$nameDisplay,\%usuallyAtEnd);
|
||||
|
||||
if($modules{$type}{FW_addDetailToSummary}) {
|
||||
no strict "refs";
|
||||
my $txt = &{$modules{$type}{FW_detailFn}}($FW_wname, $d, $FW_room);
|
||||
use strict "refs";
|
||||
if(defined($txt)) {
|
||||
FW_pO "<tr class='".($row&1?"odd":"even")."'><td>$txt</td></tr>";
|
||||
}
|
||||
}
|
||||
$row++;
|
||||
}
|
||||
FW_pO "</table>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user