Created
November 14, 2013 12:53
-
-
Save mauryaratan/7466282 to your computer and use it in GitHub Desktop.
Filter out the unnecessary tag filters. Used in http://demo.codestag.com/forest/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var all_filters = $('#all-skills').data('all-filters'), | |
all_skills = $('#all-skills').data('all-skills'); | |
all_filters.filter(function(i,v){ | |
if( all_skills.indexOf(i) === -1 ) { | |
var diff = all_filters[v]; | |
$('.portfolio-filter').find("[data-filter='"+ diff +"']").addClass('invalid'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment