diff options
author | Andrew Dolgov <[email protected]> | 2011-03-31 14:27:13 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-03-31 14:27:13 +0400 |
commit | 6f1c5d1760a8a6f753cf35098d45507ed18d0f71 (patch) | |
tree | 77d12199a1f08037afa6df8c060680f8fd5c9722 /viewfeed.js | |
parent | ccdddcc25139ee6fa7fdad395f111f6101b60a3a (diff) |
fix zoomToArticle() for new JSON reply format
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/viewfeed.js b/viewfeed.js index 6b8356eb9..79697d77b 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, |