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 postContainer = this.parentElement.parentElement.parentElement;
const postContainer = this.closest(isCatalog ? '.catalog-tile': '.post-container');
const postDataset = postContainer.dataset
const filterType = this.value;
const hiding = !postContainer.classList.contains('hidden');
@ -262,6 +262,7 @@ const postMenuChange = function(e) {
case 'moderate':
return moderatePost(postContainer);
}
console.log(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)
|
a.no-decoration.post-subject(href=postURL) #{post.subject || 'No subject'}
if !post.thread && (truncate || manage || globalmanage)
|
select.jsonly.postmenu
option(value='single') Hide
if !overboard && !ban
option(value='moderate') Moderate
|
select.jsonly.postmenu
option(value='single') Hide
option(value='fsub') Filter Subject
if !overboard
option(value='moderate') Moderate
br
span(title='Replies') R: #{post.replyposts}
| /

Loading…
Cancel
Save