Advertisement
ygeorgiev

Problem?

Nov 7th, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.40 KB | None | 0 0
  1. // Main nav - click style
  2. $('nav > ul > li').click(function(event) {
  3.     // If not already active and has sub-menu
  4.     if (!$(this).hasClass('current') && $(this).find('ul li').length > 0)
  5.     {
  6.         $(this).addClass('current').siblings().removeClass('current');
  7.         $('nav > ul > li').refreshTip();
  8.         event.preventDefault();
  9.     }
  10. }).tip({
  11.     stickIfCurrent: true,
  12.     offset: -3
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement