diff options
author | dartcafe <github@dartcafe.de> | 2017-11-12 09:09:41 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2017-11-12 09:09:41 +0300 |
commit | 0a81ef85c0972c332e4bba992f69595719c66104 (patch) | |
tree | 21c8c232f92f0af955e3af104110e9e7a269575e /js | |
parent | 8eb9f37d69936168585b57cf656b07d5593692b7 (diff) |
Fix appearance first comment
And some design optimation, when there are no comments
Diffstat (limited to 'js')
-rw-r--r-- | js/vote.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -153,7 +153,12 @@ $(document).ready(function () { '</li>'; - $('.comments .comment:first').before(newCommentElement); + $('#no-comments').after(newCommentElement); + + if (!$('#no-comments').hasClass('hidden')) { + $('#no-comments').addClass('hidden'); + } + $('.new-comment textarea').val('').focus(); $('.new-comment .icon-loading-small').hide(); |