Mattthew commited on
Commit
e5f6923
1 Parent(s): f17162e

fix bug: hidden favorites

Browse files

favorites was hidden by "hide low use tags" option when less than 3 favs

Files changed (1) hide show
  1. index.js +2 -1
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
- if(checkbox.parentNode.classList.contains('category') || checkbox.parentNode.classList.contains('no_matches')) {
 
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);