summaryrefslogtreecommitdiff
path: root/plugins/note/note.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-06 20:55:51 +0300
committerAndrew Dolgov <[email protected]>2018-12-06 20:55:51 +0300
commit4cbc62d2a529116d0117eb83a62c3270b5e6bd9f (patch)
tree43ed3d4cce9c3753c68d09b77607faa9081f2936 /plugins/note/note.js
parent75666ac7aba80bdcad8ef0c73ccd8936b0a8987d (diff)
article note format updates
Diffstat (limited to 'plugins/note/note.js')
-rw-r--r--plugins/note/note.js7
1 files changed, 4 insertions, 3 deletions
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);
}
}
});