From: Andrew Dolgov Date: Thu, 27 Dec 2012 09:21:32 +0000 (+0400) Subject: fix duplicate RCHK check while appending headlines X-Git-Tag: 1.7.0~102 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=61261e45b90f6d0582cd338a1a3c9cf0c8a599ce;p=tt-rss.git fix duplicate RCHK check while appending headlines --- diff --git a/js/viewfeed.js b/js/viewfeed.js index b839dfd6..641d931e 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -162,9 +162,9 @@ function headlines_callback2(transport, offset, background, infscroll_req) { initHeadlinesMenu(); new_elems.each(function(child) { - if (dijit.byId("RCHK-" + child.id)) { - dijit.byId("RCHK-" + child.id).destroy(); - } + var cb = dijit.byId(child.id.replace("RROW-", "RCHK-")); + + if (cb) cb.destroy(); dojo.parser.parse(child);