]> git.wh0rd.org - tt-rss.git/commitdiff
implement better way to add headlines into buffer
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 26 Nov 2010 06:42:45 +0000 (09:42 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 26 Nov 2010 06:42:45 +0000 (09:42 +0300)
tt-rss.php
viewfeed.js

index 087582152554650d7baf99f20306e5ed111e6999..dfe01e0a350f5b260bbab229d3cd35a7abdf3b87 100644 (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">
 
index be6901288dd20a933f8b823f37b8777b3a69d56c..f36c75b46bfd2bdfb8148adb54fdc8bab6fa274b 100644 (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);