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 --- plugins/note/init.php | 2 +- plugins/note/note.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins/note') diff --git a/plugins/note/init.php b/plugins/note/init.php index d97bf678b..a0abb7f19 100644 --- a/plugins/note/init.php +++ b/plugins/note/init.php @@ -23,7 +23,7 @@ class Note extends Plugin { function hook_article_button($line) { return "note_add"; + style='cursor : pointer' title='".__('Edit article note')."'>note"; } function edit() { diff --git a/plugins/note/note.js b/plugins/note/note.js index 21c1ae51e..7ea76798c 100644 --- a/plugins/note/note.js +++ b/plugins/note/note.js @@ -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); } } }); -- cgit v1.2.3