diff options
author | Andrew Dolgov <[email protected]> | 2018-12-06 20:55:51 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-06 20:55:51 +0300 |
commit | 4cbc62d2a529116d0117eb83a62c3270b5e6bd9f (patch) | |
tree | 43ed3d4cce9c3753c68d09b77607faa9081f2936 /plugins/note | |
parent | 75666ac7aba80bdcad8ef0c73ccd8936b0a8987d (diff) |
article note format updates
Diffstat (limited to 'plugins/note')
-rw-r--r-- | plugins/note/init.php | 2 | ||||
-rw-r--r-- | plugins/note/note.js | 7 |
2 files changed, 5 insertions, 4 deletions
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 "<i class='material-icons' onclick=\"Plugins.Note.edit(".$line["id"].")\" - style='cursor : pointer' title='".__('Edit article note')."'>note_add</i>"; + style='cursor : pointer' title='".__('Edit article note')."'>note</i>"; } 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); } } }); |