implement better way to add headlines into buffer
This commit is contained in:
parent
beb119a23c
commit
64e411abf4
|
@ -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">
|
||||
|
||||
|
|
10
viewfeed.js
10
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue