mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-09 11:29:15 +00:00
format note on the client
This commit is contained in:
@@ -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']);
|
||||
|
||||
|
||||
@@ -260,11 +260,6 @@ class Feeds extends Handler_Protected {
|
||||
|
||||
$this->_mark_timestamp(" disk_cache_rewrite");
|
||||
|
||||
if ($line['note'])
|
||||
$line['note'] = Article::_format_note_html($id, $line['note']);
|
||||
else
|
||||
$line['note'] = "";
|
||||
|
||||
$this->_mark_timestamp(" note");
|
||||
|
||||
if (!get_pref("CDM_EXPANDED")) {
|
||||
|
||||
Reference in New Issue
Block a user