mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 22:55:56 +00:00
article note format updates
This commit is contained in:
@@ -23,7 +23,7 @@ class Note extends Plugin {
|
||||
|
||||
function hook_article_button($line) {
|
||||
return "<i class='material-icons' onclick=\"Plugins.Note.edit(".$line["id"].")\"
|
||||
style='cursor : pointer' title='".__('Edit article note')."'>note_add</i>";
|
||||
style='cursor : pointer' title='".__('Edit article note')."'>note</i>";
|
||||
}
|
||||
|
||||
function edit() {
|
||||
|
||||
@@ -20,14 +20,15 @@ Plugins.Note = {
|
||||
if (reply) {
|
||||
ArticleCache.del(id);
|
||||
|
||||
var elem = $("POSTNOTE-" + id);
|
||||
const elem = $("POSTNOTE-" + id);
|
||||
|
||||
if (elem) {
|
||||
Element.hide(elem);
|
||||
elem.innerHTML = reply.note;
|
||||
|
||||
if (reply.raw_length != 0)
|
||||
new Effect.Appear(elem);
|
||||
Element.show(elem);
|
||||
else
|
||||
Element.hide(elem);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user