summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-26 09:42:45 +0300
committerAndrew Dolgov <[email protected]>2010-11-26 09:42:45 +0300
commit64e411abf4a59b0af319fdf8e07d9fb58097e810 (patch)
tree2213b8b75165dc7a6ac8398d52883f96303dd693
parentbeb119a23c357c46cd835355f3b4179a35827c08 (diff)
implement better way to add headlines into buffer
-rw-r--r--tt-rss.php1
-rw-r--r--viewfeed.js10
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 @@
<div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div>
<div id="cmdline" style="display : none"></div>
<div id="auxDlg" style="display : none"></div>
+<div id="headlines-tmp" style="display : none"></div>
<div id="main" dojoType="dijit.layout.BorderContainer">
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);