diff --git a/files/assets/CHRISTMAS/js/comments.js b/files/assets/CHRISTMAS/js/comments.js index 94db69e9f..bd98a11c5 100644 --- a/files/assets/CHRISTMAS/js/comments.js +++ b/files/assets/CHRISTMAS/js/comments.js @@ -48,4 +48,10 @@ function loadMoreReplies(cid,id,trigger) { } } xhr.send(form) +} + +function poll_vote_no_v() { + var myToast = new bootstrap.Toast(document.getElementById('toast-post-error')); + myToast.show(); + document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!"; } \ No newline at end of file diff --git a/files/assets/CHRISTMAS/js/comments_v.js b/files/assets/CHRISTMAS/js/comments_v.js index bb5c021da..018b3620e 100644 --- a/files/assets/CHRISTMAS/js/comments_v.js +++ b/files/assets/CHRISTMAS/js/comments_v.js @@ -250,10 +250,10 @@ document.onpaste = function(event) { function poll_vote(cid, parentid) { for(let el of document.getElementsByClassName('presult-'+parentid)) { - el.classList.remove('d-none'); + el.classList.remove('hidden'); } for(let el of document.getElementsByClassName('presult')) { - el.classList.remove('d-none'); + el.classList.remove('hidden'); } var type = document.getElementById(cid).checked; var scoretext = document.getElementById('poll-' + cid); diff --git a/files/templates/CHRISTMAS/toasts/toasts.html b/files/templates/CHRISTMAS/toasts/toasts.html index dd907ae61..7cba26289 100644 --- a/files/templates/CHRISTMAS/toasts/toasts.html +++ b/files/templates/CHRISTMAS/toasts/toasts.html @@ -6,7 +6,7 @@