mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 10:25:56 +00:00
fix zoomToArticle() for new JSON reply format
This commit is contained in:
@@ -1564,11 +1564,12 @@ function zoomToArticle(event, id) {
|
|||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
notify('');
|
notify('');
|
||||||
|
|
||||||
if (transport.responseXML) {
|
var reply = JSON.parse(transport.responseText);
|
||||||
|
|
||||||
|
if (reply) {
|
||||||
//closeArticlePanel();
|
//closeArticlePanel();
|
||||||
|
|
||||||
var article = transport.responseXML.getElementsByTagName("article")[0];
|
var content = reply[0]['content'];
|
||||||
var content = article.firstChild.nodeValue;
|
|
||||||
|
|
||||||
var article_pane = new dijit.layout.ContentPane({
|
var article_pane = new dijit.layout.ContentPane({
|
||||||
title: "article-" + id , content: content,
|
title: "article-" + id , content: content,
|
||||||
|
|||||||
Reference in New Issue
Block a user