diff options
Diffstat (limited to 'plugins/note')
| -rw-r--r-- | plugins/note/init.php | 6 | ||||
| -rw-r--r-- | plugins/note/note.js | 9 | ||||
| -rw-r--r-- | plugins/note/note.png | bin | 500 -> 0 bytes |
3 files changed, 6 insertions, 9 deletions
diff --git a/plugins/note/init.php b/plugins/note/init.php index ac908a5ba..a0abb7f19 100644 --- a/plugins/note/init.php +++ b/plugins/note/init.php @@ -22,10 +22,8 @@ class Note extends Plugin { function hook_article_button($line) { - return "<img src=\"plugins/note/note.png\" - style=\"cursor : pointer\" style=\"cursor : pointer\" - onclick=\"Plugins.Note.edit(".$line["id"].")\" - class='tagsPic' title='".__('Edit article note')."'>"; + return "<i class='material-icons' onclick=\"Plugins.Note.edit(".$line["id"].")\" + 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..0c811000d 100644 --- a/plugins/note/note.js +++ b/plugins/note/note.js @@ -18,16 +18,15 @@ Plugins.Note = { dialog.hide(); 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); } } }); diff --git a/plugins/note/note.png b/plugins/note/note.png Binary files differdeleted file mode 100644 index 244e6ca04..000000000 --- a/plugins/note/note.png +++ /dev/null |