Skip to content

Commit

Permalink
Too late for boolean logic
Browse files Browse the repository at this point in the history
  • Loading branch information
diurnalist committed Sep 18, 2018
1 parent 2f08307 commit eb0a713
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/public/js/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@

showtimeEls.forEach(function (el) {
var textSearch = el.dataset.textSearch;
el.style.display = textSearch.indexOf(query) >= 0 && !isInverse ? '' : 'none';
var found = textSearch.indexOf(query) >= 0;
el.style.display = found ^ isInverse ? '' : 'none';
});
});

Expand Down

0 comments on commit eb0a713

Please sign in to comment.