From: Andrew Dolgov Date: Thu, 31 Mar 2011 10:27:13 +0000 (+0400) Subject: fix zoomToArticle() for new JSON reply format X-Git-Tag: 1.5.3~89 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6f1c5d1760a8a6f753cf35098d45507ed18d0f71;p=tt-rss.git fix zoomToArticle() for new JSON reply format --- diff --git a/viewfeed.js b/viewfeed.js index 6b8356eb..79697d77 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -1564,11 +1564,12 @@ function zoomToArticle(event, id) { onComplete: function(transport) { notify(''); - if (transport.responseXML) { + var reply = JSON.parse(transport.responseText); + + if (reply) { //closeArticlePanel(); - var article = transport.responseXML.getElementsByTagName("article")[0]; - var content = article.firstChild.nodeValue; + var content = reply[0]['content']; var article_pane = new dijit.layout.ContentPane({ title: "article-" + id , content: content,