Created
May 3, 2012 23:14
-
-
Save cloudxero/2590322 to your computer and use it in GitHub Desktop.
Remove New/Used Quick Link on Vehicle List Page
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
/* Removes New quick link on VLP */ | |
if (jQuery('#armadillo-listing').length){ | |
jQuery('#armadillo-quick-links .armadillo-expanded li').each(function(){ | |
if (jQuery(this).find('a').text().match(/new/i) != null){ | |
jQuery(this).css({'display':'none'}); | |
} | |
}); | |
} | |
/* Removes Used quick link on VLP */ | |
if (jQuery('#armadillo-listing').length){ | |
jQuery('#armadillo-quick-links .armadillo-expanded li').each(function(){ | |
if (jQuery(this).find('a').text().match(/used/i) != null){ | |
jQuery(this).css({'display':'none'}); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment