From: Andrew Dolgov Date: Sat, 27 Oct 2012 20:41:51 +0000 (+0400) Subject: multiple issues fixed in vfeed_group_by_feed X-Git-Tag: 1.6.1~55 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7fdf8eca9900ae626291b9acc65aef2197af1a94;p=tt-rss.git multiple issues fixed in vfeed_group_by_feed --- diff --git a/include/functions.php b/include/functions.php index 4c88c035..656664da 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2559,9 +2559,12 @@ $offset_query_part = "OFFSET $offset"; } + // proper override_order applied above if ($vfeed_query_part && get_pref($link, 'VFEED_GROUP_BY_FEED', $owner_uid)) { if (!$override_order) { $order_by = "ttrss_feeds.title, $order_by"; + } else { + $order_by = "ttrss_feeds.title, $override_order"; } } diff --git a/js/viewfeed.js b/js/viewfeed.js index 5f7fbee6..ff09c0a5 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -115,10 +115,16 @@ function headlines_callback2(transport, offset, background, infscroll_req) { c.domNode.removeChild(hsp); $$("#headlines-tmp > div").each(function(row) { - if ($$("#headlines-frame DIV[id="+row.id+"]").length == 0) { + if (row.className == 'cdmFeedTitle') { + row.addClassName('new'); row.style.display = 'none'; c.domNode.appendChild(row); ++num_added; + } else if ($$("#headlines-frame DIV[id="+row.id+"]").length == 0) { + row.style.display = 'none'; + row.addClassName('new'); + c.domNode.appendChild(row); + ++num_added; } else { row.parentNode.removeChild(row); } @@ -145,8 +151,9 @@ function headlines_callback2(transport, offset, background, infscroll_req) { initHeadlinesMenu(); - $$("#headlines-frame > div[id*=RROW]").each( + $$("#headlines-frame > div[class*=new]").each( function(child) { + child.removeClassName('new'); if (!Element.visible(child)) new Effect.Appear(child, { duration : 0.5 }); });