mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 00:41:30 +00:00
rpc/digest-get-contents: use JSON
This commit is contained in:
@@ -134,9 +134,12 @@ function zoom(elem, article_id) {
|
||||
onComplete: function(transport) {
|
||||
fatal_error_check(transport);
|
||||
|
||||
if (transport.responseXML) {
|
||||
var article = transport.responseXML.getElementsByTagName('article')[0];
|
||||
elem.innerHTML = article.firstChild.nodeValue;
|
||||
var reply = JSON.parse(transport.responseText);
|
||||
|
||||
if (reply) {
|
||||
var article = reply['article'];
|
||||
|
||||
elem.innerHTML = article.content;
|
||||
|
||||
new Effect.BlindDown(elem, {duration : 0.5});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user