mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
b97b282ef5
commit
20743d565a
@ -918,11 +918,10 @@ sub FB_CALLLIST_list2html($)
|
|||||||
$ret .= "</td></tr>";
|
$ret .= "</td></tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(AttrVal($name, "disable", "0") ne "3")
|
|
||||||
{
|
|
||||||
$ret .= "<tr><td>";
|
$ret .= "<tr><td>";
|
||||||
$ret .= '<div class="fhemWidget" informId="'.$name.'" cmd="" arg="fbcalllist" dev="'.$name.'">'; # div tag to support inform updates
|
$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;"' : ''),'');
|
$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
|
else
|
||||||
{
|
{
|
||||||
my $string;
|
my $string = ((AttrVal($name, "language", "en") eq "de") ? "leer" : "empty");
|
||||||
|
|
||||||
if(AttrVal($name, "language", "en") eq "de")
|
|
||||||
{
|
|
||||||
$string = "leer";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$string = "empty";
|
|
||||||
}
|
|
||||||
|
|
||||||
my @columns = split(",",AttrVal($name, "visible-columns", $hash->{helper}{DEFAULT_COLUMN_ORDER}));
|
my @columns = split(",",AttrVal($name, "visible-columns", $hash->{helper}{DEFAULT_COLUMN_ORDER}));
|
||||||
my $additional_columns = scalar(@columns);
|
my $additional_columns = scalar(@columns);
|
||||||
@ -968,7 +958,6 @@ sub FB_CALLLIST_list2html($)
|
|||||||
|
|
||||||
$ret .= "</table></div>";
|
$ret .= "</table></div>";
|
||||||
$ret .= "</td></tr>";
|
$ret .= "</td></tr>";
|
||||||
}
|
|
||||||
|
|
||||||
$ret .= "</table>";
|
$ret .= "</table>";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user