Mattthew
commited on
Commit
•
e5f6923
1
Parent(s):
f17162e
fix bug: hidden favorites
Browse filesfavorites was hidden by "hide low use tags" option when less than 3 favs
index.js
CHANGED
@@ -1193,7 +1193,8 @@ function showHideLowCountTags() {
|
|
1193 |
var checkboxes = document.querySelectorAll('input[type="checkbox"]');
|
1194 |
checkboxes.forEach(function(checkbox) {
|
1195 |
if(hideLowCount) {
|
1196 |
-
|
|
|
1197 |
// skip hide
|
1198 |
} else {
|
1199 |
let count = parseInt(checkbox.parentNode.querySelector('.count').textContent.replace(/,/g, '').trim().substring(2),10);
|
|
|
1193 |
var checkboxes = document.querySelectorAll('input[type="checkbox"]');
|
1194 |
checkboxes.forEach(function(checkbox) {
|
1195 |
if(hideLowCount) {
|
1196 |
+
var classes = checkbox.parentNode.classList;
|
1197 |
+
if(classes.contains('category') || classes.contains('no_matches') || classes.contains('top_control')) {
|
1198 |
// skip hide
|
1199 |
} else {
|
1200 |
let count = parseInt(checkbox.parentNode.querySelector('.count').textContent.replace(/,/g, '').trim().substring(2),10);
|