FB_CALLLIST: fix longpoll updates when "attr disable 3" is active

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16055 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2018-01-31 12:46:39 +00:00
parent b97b282ef5
commit 20743d565a

View File

@ -918,11 +918,10 @@ sub FB_CALLLIST_list2html($)
$ret .= "</td></tr>";
}
if(AttrVal($name, "disable", "0") ne "3")
{
$ret .= "<tr><td>";
$ret .= '<div class="fhemWidget" informId="'.$name.'" cmd="" arg="fbcalllist" dev="'.$name.'">'; # div tag to support inform updates
$ret .= '<table class="block wide fbcalllist">';
$ret .= '<table class="block wide fbcalllist"'.((AttrVal($name, "disable", "0") eq "3") ? ' style="display:none;"' : '').'>';
$ret .= FB_CALLLIST_returnOrderedHTMLOutput($hash, FB_CALLLIST_returnTableHeader($hash), 'class="fbcalllist header"'.((AttrVal($name, "no-table-header", "0") eq "1") ? ' style="display:none;"' : ''),'');
@ -948,16 +947,7 @@ sub FB_CALLLIST_list2html($)
}
else
{
my $string;
if(AttrVal($name, "language", "en") eq "de")
{
$string = "leer";
}
else
{
$string = "empty";
}
my $string = ((AttrVal($name, "language", "en") eq "de") ? "leer" : "empty");
my @columns = split(",",AttrVal($name, "visible-columns", $hash->{helper}{DEFAULT_COLUMN_ORDER}));
my $additional_columns = scalar(@columns);
@ -968,7 +958,6 @@ sub FB_CALLLIST_list2html($)
$ret .= "</table></div>";
$ret .= "</td></tr>";
}
$ret .= "</table>";