mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
allow icons as scene names in html overview
git-svn-id: https://svn.fhem.de/fhem/trunk@3406 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8dd985a6b7
commit
c82e51195a
@ -106,6 +106,10 @@ LightScene_2html($)
|
||||
$srf = $room if( $room && $room =~ m/^&/ );
|
||||
my $link = "cmd=set $name scene $scene";
|
||||
my $txt = $scene;
|
||||
if( 1 ) {
|
||||
my ($icon, $link, $isHtml) = FW_dev2image($name, $scene);
|
||||
$txt = ($isHtml ? $icon : FW_makeImage($icon, $scene)) if( $icon );
|
||||
}
|
||||
if( AttrVal($FW_wname, "longpoll", 1)) {
|
||||
$txt = "<a onClick=\"FW_cmd('$FW_ME$FW_subdir?XHR=1&$link')\">$txt</a>";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user