implement better way to add headlines into buffer

This commit is contained in:
Andrew Dolgov 2010-11-26 09:42:45 +03:00
parent beb119a23c
commit 64e411abf4
2 changed files with 9 additions and 2 deletions

View File

@ -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">

View File

@ -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);