]> git.wh0rd.org Git - tt-rss.git/commitdiff
headlines callback: prevent creation of duplicate RROW nodes
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 20 Oct 2011 19:45:55 +0000 (23:45 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 20 Oct 2011 19:45:55 +0000 (23:45 +0400)
viewfeed.js

index be2c5c67bd39f5b928d9ecb4fa86c9d9db2d2876..daaf57aafaf4939c0ea385a612749909a111678e 100644 (file)
@@ -100,6 +100,8 @@ function headlines_callback2(transport, offset, background) {
                                                if ($$("#headlines-frame DIV[id="+row.id+"]").length == 0) {
                                                        row.style.display = 'none';
                                                        c.domNode.appendChild(row);
+                                               } else {
+                                                       row.parentNode.removeChild(row);
                                                }
                                        });