Skip to content

Commit

Permalink
filter-all
Browse files Browse the repository at this point in the history
  • Loading branch information
ces-truongvu committed Jun 2, 2017
1 parent ee7b018 commit bcb11e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/elastic_grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,10 @@ $(function() {
});

localStorage.setItem("filter", true);
localStorage.setItem("filter-all", false);

if (filterVal, config.showAllText.toLowerCase().replace(' ','-')) {
if (filterVal === config.showAllText.toLowerCase().replace(' ','-')) {
localStorage.setItem("filter-all", true);
} else {
localStorage.setItem("filter-all", false);
}

$body.animate( { scrollTop : $this.offset().top }, settings.speed );
Expand Down

0 comments on commit bcb11e2

Please sign in to comment.