]> git.wh0rd.org Git - tt-rss.git/commitdiff
attach headline menu objects to correct DOM nodes in combined mode
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 22 Jan 2017 16:57:16 +0000 (19:57 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 22 Jan 2017 16:57:16 +0000 (19:57 +0300)
js/viewfeed.js

index 2f91af12d884609ceb49a8404c6083243fe164f8..cf5c2f4001686251c2afcbd186a4d04b0ecba5df 100755 (executable)
@@ -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);
+                                                               }
+                                                       }
                                                }
                                        }