implement better way to add headlines into buffer

master
Andrew Dolgov 14 years ago
parent beb119a23c
commit 64e411abf4

@ -77,6 +77,7 @@
<div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div> <div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div>
<div id="cmdline" style="display : none"></div> <div id="cmdline" style="display : none"></div>
<div id="auxDlg" 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"> <div id="main" dojoType="dijit.layout.BorderContainer">

@ -123,8 +123,14 @@ function headlines_callback2(transport, feed_cur_page) {
var c = dijit.byId("headlines-frame"); var c = dijit.byId("headlines-frame");
var ids = getSelectedArticleIds2(); var ids = getSelectedArticleIds2();
c.attr('content', c.attr('content') + //c.attr('content', c.attr('content') +
headlines_content.firstChild.nodeValue); // 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); console.log("restore selected ids: " + ids);

Loading…
Cancel
Save