Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2017-11-12 09:09:41 +0300
committerdartcafe <github@dartcafe.de>2017-11-12 09:09:41 +0300
commit0a81ef85c0972c332e4bba992f69595719c66104 (patch)
tree21c8c232f92f0af955e3af104110e9e7a269575e /js
parent8eb9f37d69936168585b57cf656b07d5593692b7 (diff)
Fix appearance first comment
And some design optimation, when there are no comments
Diffstat (limited to 'js')
-rw-r--r--js/vote.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/vote.js b/js/vote.js
index 5e94f50e..f84e70f6 100644
--- a/js/vote.js
+++ b/js/vote.js
@@ -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();