2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

commands lookup fix

git-svn-id: https://svn.fhem.de/fhem/trunk@4712 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-01-22 14:07:24 +00:00
parent 070559fede
commit fe9c451ded

View File

@ -388,7 +388,7 @@ readingsGroup_2html($)
my $cmd = $3;
$txt = FW_makeImage( $icon, $icon, "icon" );
$cmd = lookup2($commands,$name,undef,$icon) if( !defined($cmd) );
$cmd = lookup2($commands,$name,$d,$icon) if( !defined($cmd) );
($txt,undef) = readingsGroup_makeLink($txt,undef,$cmd);
} elsif( $first || $multi == 1 ) {
@ -407,7 +407,7 @@ readingsGroup_2html($)
}
}
my $inform_id = "";
$inform_id = "informId=\"$d-$item.item\"" if( $readings );
$inform_id = "informId=\"$d-i$item.item\"" if( $readings );
$ret .= "<td><div $name_style $inform_id>$txt</div></td>";
$first = 0;
next;
@ -679,11 +679,12 @@ readingsGroup_Notify($$)
my $icon = $1;
my $cmd = $3;
$cmd = lookup2($commands,$name,$h->{NAME},$icon) if( !defined($cmd) );
$txt = FW_makeImage( $icon, $icon, "icon" );
($txt,undef) = readingsGroup_makeLink($txt,undef,$cmd);
}
CommandTrigger( "", "$name $item.item: $txt" );
CommandTrigger( "", "$name i$item.item: $txt" );
}
next;