diff --git a/classes/feeds.php b/classes/feeds.php index 2bd9b0e65..d6da225e8 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -417,7 +417,7 @@ class Feeds extends Handler_Protected { $reply['content'] .= "
"; - $reply['content'] .= "" . truncate_string($line["title"], 200); @@ -523,7 +523,7 @@ class Feeds extends Handler_Protected { } // data-article-id included for context menu - $tmp_content .= " @@ -564,7 +564,7 @@ class Feeds extends Handler_Protected { $tmp_content .= "
"; //cdmHeader - $tmp_content .= "
"; + $tmp_content .= "
"; $tmp_content .= "
"; if ($line['note']) { diff --git a/plugins/note/note.js b/plugins/note/note.js index 022fc88e7..bf69a680e 100644 --- a/plugins/note/note.js +++ b/plugins/note/note.js @@ -12,31 +12,26 @@ function editArticleNote(id) { style: "width: 600px", execute: function() { if (this.validate()) { - var query = dojo.objectToQuery(this.attr('value')); - notify_progress("Saving article note...", true); - new Ajax.Request("backend.php", { - parameters: query, - onComplete: function(transport) { - notify(''); - dialog.hide(); + xhrJson("backend.php", this.attr('value'), (reply) => { + notify(''); + dialog.hide(); - var reply = JSON.parse(transport.responseText); + if (reply) { + cache_delete("article:" + id); - cache_delete("article:" + id); + var elem = $("POSTNOTE-" + id); - var elem = $("POSTNOTE-" + id); + if (elem) { + Element.hide(elem); + elem.innerHTML = reply.note; - if (elem) { - Element.hide(elem); - elem.innerHTML = reply.note; - - if (reply.raw_length != 0) - new Effect.Appear(elem); - } - - }}); + if (reply.raw_length != 0) + new Effect.Appear(elem); + } + } + }); } }, href: query,