Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function displayAccordion() {
- $("#accordion-nav div ul").each(
- function(){
- if ($(this).find('a').filter(
- function(){
- if(window.location.toString().match(/f\?p=\d+:(\d+):/)[1] == $(this).attr('href').match(/f\?p=\d+:(\d+):/)[1] ){
- $(this).addClass('is-lvl2-current');
- return true;
- } else {
- $(this).removeClass('is-lvl2-current');
- return false;
- }
- }).length > 0) {
- $(this).slideDown(1)
- } else {
- $(this).slideUp(1)
- };
- }
- );
- }
- apex.jQuery("#accordion-nav").ready(function(){displayAccordion()});
Add Comment
Please, Sign In to add comment