]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix zoomToArticle() for new JSON reply format
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 31 Mar 2011 10:27:13 +0000 (14:27 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 31 Mar 2011 10:27:13 +0000 (14:27 +0400)
viewfeed.js

index 6b8356eb919217d61f948b9f8c44856cdf4472d0..79697d77bf4c4f8f6581eb6bce1af6a2a1667199 100644 (file)
@@ -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,