From: Andrew Dolgov Date: Mon, 5 Sep 2005 12:07:57 +0000 (+0100) Subject: update unread/total/etc counters for selected feed on viewfeed iframe load X-Git-Tag: 1.0.3~44 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6113ef7d22096e2a71a57c34483957ac7fe26205;p=tt-rss.git update unread/total/etc counters for selected feed on viewfeed iframe load --- diff --git a/backend.php b/backend.php index 325c367e..a2236c3a 100644 --- a/backend.php +++ b/backend.php @@ -274,8 +274,8 @@ $line = pg_fetch_assoc($result); - if ($subop == "ForceUpdate") { -// (!$subop && $line["update_timeout"] > MIN_UPDATE_TIME)) { + if ($subop == "ForceUpdate" || + (!$subop && $line["update_timeout"] > MIN_UPDATE_TIME)) { update_rss_feed($link, $line["feed_url"], $feed); @@ -482,9 +482,23 @@ $total = pg_fetch_result($result, 0, "total"); $unread = pg_fetch_result($result, 0, "unread"); - print "
$feed
"; - print "
$total
"; - print "
$unread
"; + // update unread/total counters and status for active feed in the feedlist + // kludge, because iframe doesn't seem to support onload() + + print ""; if ($addheader) { print "";