From 4cbc62d2a529116d0117eb83a62c3270b5e6bd9f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 6 Dec 2018 20:55:51 +0300 Subject: article note format updates --- classes/article.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'classes/article.php') diff --git a/classes/article.php b/classes/article.php index 091caa735..6553bc67d 100755 --- a/classes/article.php +++ b/classes/article.php @@ -909,9 +909,18 @@ class Article extends Handler_Protected { static function format_article_note($id, $note, $allow_edit = true) { - $str = "
-
". - ($allow_edit ? __('(edit note)') : "")."
$note
"; + if ($allow_edit) { + $onclick = "onclick='Plugins.Note.edit($id)'"; + $note_class = 'editable'; + } else { + $onclick = ''; + $note_class = ''; + } + + return "
+ note +
$note
+
"; return $str; } -- cgit v1.2.3-54-g00ecf