mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
60_Watches: avoid JS error which appeared in seldom cases
git-svn-id: https://svn.fhem.de/fhem/trunk@23499 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4bdf83bebf
commit
667b072a4f
@ -55,7 +55,7 @@ BEGIN {
|
||||
readingsEndUpdate
|
||||
readingFnAttributes
|
||||
readingsSingleUpdate
|
||||
sortTopicNum
|
||||
sortTopicNum
|
||||
)
|
||||
);
|
||||
|
||||
@ -561,13 +561,13 @@ sub FWebFn {
|
||||
my $hash = $defs{$d};
|
||||
|
||||
my $alias = AttrVal($d, "alias", $d); # Linktext als Aliasname oder Devicename setzen
|
||||
my $dlink = qq{<a href="/fhem?detail=$d">$alias</a>};
|
||||
my $dlink = qq{<a href="$FW_ME?detail=$d">$alias</a>};
|
||||
|
||||
my $ret = "";
|
||||
$ret .= "<span>$dlink </span><br>" if(!AttrVal($d,"hideDisplayName",0));
|
||||
if(IsDisabled($d)) {
|
||||
if(AttrVal($d,"hideDisplayName",0)) {
|
||||
$ret .= qq{Watch <a href="/fhem?detail=$d">$d</a> is disabled};
|
||||
$ret .= qq{Watch <a href="$FW_ME?detail=$d">$d</a> is disabled};
|
||||
}
|
||||
else {
|
||||
$ret .= "<html>Watch is disabled</html>";
|
||||
|
Loading…
Reference in New Issue
Block a user