02_RSS: continue image update sequence after error (HTML)
git-svn-id: https://svn.fhem.de/fhem/trunk@10751 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- feature: 02_RSS: continue image update sequence after error (HTML)
|
||||
- feature: 98_rssFeed: Possibility to modfy feed data via a custom function.
|
||||
- change: 49_SSCAM: entries with loglevl "2" reviewed,changed to loglevl "3"
|
||||
- feature: 50_TelegramBot receive media files,
|
||||
|
||||
@@ -303,7 +303,11 @@ RSS_returnHTML($) {
|
||||
my $overflow= $noscroll ? " style=\"overflow:hidden\"" : "";
|
||||
my $areas= AttrVal($name, 'areas', "");
|
||||
my $embed= $defs{$name}{".embed"};
|
||||
my $r= (defined($refresh) && ($refresh> 0)) ? " onload=\"setTimeout(function(){reloadImage(\'img0\')},$refresh*1000);\"" : "";
|
||||
my $r= "";
|
||||
if(defined($refresh) && ($refresh> 0)) {
|
||||
my $handler= "\"setTimeout(function(){reloadImage(\'img0\')},$refresh*1000);\"";
|
||||
$r= " onload=$handler onerror=$handler";
|
||||
}
|
||||
my $code= RSS_HTMLHead($name, $refresh) .
|
||||
"<body topmargin=\"0\" leftmargin=\"0\" margin=\"0\" padding=\"0\"$overflow>\n" .
|
||||
"<div id=\"rss_$name\" style=\"z-index:1;\" >\n" .
|
||||
|
||||
Reference in New Issue
Block a user