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 /viewfeed.js | |
parent | beb119a23c357c46cd835355f3b4179a35827c08 (diff) |
implement better way to add headlines into buffer
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 10 |
1 files changed, 8 insertions, 2 deletions
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); |