fix zoomToArticle() for new JSON reply format

This commit is contained in:
Andrew Dolgov 2011-03-31 14:27:13 +04:00
parent ccdddcc251
commit 6f1c5d1760
1 changed files with 4 additions and 3 deletions

View 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,