Created
January 11, 2012 15:59
-
-
Save rmzelle/1595333 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Hide styles that don't match the search text | |
if (show) { | |
if (name.replace(/-/g," ").indexOf(valLower) == -1 && $(this).text().toLowerCase().indexOf(valLower) == -1) { | |
show = false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment