couple fixes and corrections for ya ;)

jschan
Thomas Lynch 3 years ago
parent afc746b4cc
commit 9b744e6271
No known key found for this signature in database
GPG Key ID: FBAB081F9B6E14B2
  1. 3
      gulp/res/js/filters.js
  2. 13
      views/mixins/catalogtile.pug

@ -237,7 +237,7 @@ const moderatePost = (postContainer) => {
} }
const postMenuChange = function(e) { const postMenuChange = function(e) {
const postContainer = this.parentElement.parentElement.parentElement; const postContainer = this.closest(isCatalog ? '.catalog-tile': '.post-container');
const postDataset = postContainer.dataset const postDataset = postContainer.dataset
const filterType = this.value; const filterType = this.value;
const hiding = !postContainer.classList.contains('hidden'); const hiding = !postContainer.classList.contains('hidden');
@ -262,6 +262,7 @@ const postMenuChange = function(e) {
case 'moderate': case 'moderate':
return moderatePost(postContainer); return moderatePost(postContainer);
} }
console.log(filterType, filterData, hiding)
toggleFilter(filterType, filterData, hiding); toggleFilter(filterType, filterData, hiding);
}; };

@ -37,13 +37,12 @@ mixin catalogtile(post, index, overboard=false)
span(class=`flag flag-${post.country.code.toLowerCase()}` title=post.country.name alt=post.country.name) span(class=`flag flag-${post.country.code.toLowerCase()}` title=post.country.name alt=post.country.name)
| |
a.no-decoration.post-subject(href=postURL) #{post.subject || 'No subject'} a.no-decoration.post-subject(href=postURL) #{post.subject || 'No subject'}
|
if !post.thread && (truncate || manage || globalmanage) select.jsonly.postmenu
| option(value='single') Hide
select.jsonly.postmenu option(value='fsub') Filter Subject
option(value='single') Hide if !overboard
if !overboard && !ban option(value='moderate') Moderate
option(value='moderate') Moderate
br br
span(title='Replies') R: #{post.replyposts} span(title='Replies') R: #{post.replyposts}
| / | /

Loading…
Cancel
Save