dfg
This commit is contained in:
parent
2322f81f49
commit
481c2c78cb
3 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,8 @@ function collapse_comment(comment_id) {
|
||||||
const closed = element.classList.toggle("collapsed")
|
const closed = element.classList.toggle("collapsed")
|
||||||
const top = element.getBoundingClientRect().y
|
const top = element.getBoundingClientRect().y
|
||||||
|
|
||||||
|
document.querySelectorAll(`#${comment} .collapsed`).forEach(n => n.classList.remove('collapsed'))
|
||||||
|
|
||||||
if (closed && top < 0) {
|
if (closed && top < 0) {
|
||||||
element.scrollIntoView()
|
element.scrollIntoView()
|
||||||
window.scrollBy(0, - 100)
|
window.scrollBy(0, - 100)
|
||||||
|
|
|
@ -417,7 +417,7 @@ class Comment(Base):
|
||||||
|
|
||||||
if self.is_banned: return True
|
if self.is_banned: return True
|
||||||
|
|
||||||
if path.startswith('/post') and (self.slots_result or self.blackjack_result) and (not self.body or len(self.body) <= 20)and self.level > 1: return True
|
if path.startswith('/post') and (self.slots_result or self.blackjack_result) and (not self.body or len(self.body) <= 20) and self.level > 1: return True
|
||||||
|
|
||||||
if v and v.filter_words and self.body and any(x in self.body for x in v.filter_words): return True
|
if v and v.filter_words and self.body and any(x in self.body for x in v.filter_words): return True
|
||||||
|
|
||||||
|
|
|
@ -916,7 +916,7 @@
|
||||||
{% include "expanded_image_modal.html" %}
|
{% include "expanded_image_modal.html" %}
|
||||||
|
|
||||||
<script src="/static/assets/js/comments+submission_listing.js?a=240"></script>
|
<script src="/static/assets/js/comments+submission_listing.js?a=240"></script>
|
||||||
<script src="/static/assets/js/comments.js?a=240"></script>
|
<script src="/static/assets/js/comments.js?a=241"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
{% if p and (not v or v.highlightcomments) %}
|
{% if p and (not v or v.highlightcomments) %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue