1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:45:55 +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

@@ -419,21 +419,6 @@ class Article extends Handler_Protected {
return $tags;
}
static function _format_note_html($id, $note, $allow_edit = true) {
if ($allow_edit) {
$onclick = "onclick='Plugins.Note.edit($id)'";
$note_class = 'editable';
} else {
$onclick = '';
$note_class = '';
}
return "<div class='article-note $note_class'>
<i class='material-icons'>note</i>
<div $onclick class='body'>$note</div>
</div>";
}
function getmetadatabyid() {
$id = clean($_REQUEST['id']);