From 974c6eb523fa24ab2902ef6497dc40500c8133a7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 22 Jan 2017 19:57:16 +0300 Subject: [PATCH] attach headline menu objects to correct DOM nodes in combined mode --- js/viewfeed.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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); + } + } } } -- 2.39.5