From 64e411abf4a59b0af319fdf8e07d9fb58097e810 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 26 Nov 2010 09:42:45 +0300 Subject: [PATCH] implement better way to add headlines into buffer --- tt-rss.php | 1 + viewfeed.js | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tt-rss.php b/tt-rss.php index 087582152..dfe01e0a3 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -77,6 +77,7 @@
 
+
diff --git a/viewfeed.js b/viewfeed.js index be6901288..f36c75b46 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -123,8 +123,14 @@ function headlines_callback2(transport, feed_cur_page) { var c = dijit.byId("headlines-frame"); var ids = getSelectedArticleIds2(); - c.attr('content', c.attr('content') + - headlines_content.firstChild.nodeValue); + //c.attr('content', c.attr('content') + + // headlines_content.firstChild.nodeValue); + + $("headlines-tmp").innerHTML = headlines_content.firstChild.nodeValue; + + $$("#headlines-tmp > div").each(function(row) { + c.domNode.appendChild(row); + }); console.log("restore selected ids: " + ids);