From: Andrew Dolgov Date: Fri, 26 Nov 2010 06:42:45 +0000 (+0300) Subject: implement better way to add headlines into buffer X-Git-Tag: 1.5.0~38 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=64e411abf4a59b0af319fdf8e07d9fb58097e810;p=tt-rss.git implement better way to add headlines into buffer --- diff --git a/tt-rss.php b/tt-rss.php index 08758215..dfe01e0a 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -77,6 +77,7 @@
 
+
diff --git a/viewfeed.js b/viewfeed.js index be690128..f36c75b4 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);