From: Andrew Dolgov Date: Sun, 22 Jan 2017 16:57:16 +0000 (+0300) Subject: attach headline menu objects to correct DOM nodes in combined mode X-Git-Tag: 17.4~85 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=974c6eb523fa24ab2902ef6497dc40500c8133a7;p=tt-rss.git attach headline menu objects to correct DOM nodes in combined mode --- diff --git a/js/viewfeed.js b/js/viewfeed.js index 2f91af12..cf5c2f40 100755 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -159,7 +159,16 @@ function headlines_callback2(transport, offset, background, infscroll_req) { dijit.byId("headlines-frame").domNode.appendChild(row); loaded_article_ids.push(row.id); - new_rows.push(row); + + if (!isCdmMode() || row.hasClassName("cdmFeedTitle")) { + new_rows.push(row); + } else if (isCdmMode()) { + var titleWrap = $$("#" + row.id + " .titleWrap")[0]; + + if (titleWrap) { + new_rows.push(titleWrap); + } + } } }