1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 03:25:56 +00:00

format note on the client

This commit is contained in:
Andrew Dolgov
2021-02-19 17:15:22 +03:00
parent 4fa8450d38
commit d445530fa0
7 changed files with 18 additions and 38 deletions

View File

@@ -13,16 +13,14 @@ Plugins.Note = {
dialog.hide();
if (reply) {
const elem = App.byId("POSTNOTE-" + id);
App.findAll(`div[data-note-for="${reply.id}"]`).forEach((elem) => {
elem.querySelector(".body").innerHTML = reply.note;
if (elem) {
elem.innerHTML = reply.note;
if (reply.raw_length != 0)
Element.show(elem);
if (reply.note)
elem.show();
else
Element.hide(elem);
}
elem.hide();
});
}
});
}