diff options
author | Andrew Dolgov <[email protected]> | 2010-11-26 09:42:45 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-26 09:42:45 +0300 |
commit | 64e411abf4a59b0af319fdf8e07d9fb58097e810 (patch) | |
tree | 2213b8b75165dc7a6ac8398d52883f96303dd693 | |
parent | beb119a23c357c46cd835355f3b4179a35827c08 (diff) |
implement better way to add headlines into buffer
-rw-r--r-- | tt-rss.php | 1 | ||||
-rw-r--r-- | 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 @@ <div id="notify" class="notify"><span id="notify_body"> </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); |