Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Main nav - click style
- $('nav > ul > li').click(function(event) {
- // If not already active and has sub-menu
- if (!$(this).hasClass('current') && $(this).find('ul li').length > 0)
- {
- $(this).addClass('current').siblings().removeClass('current');
- $('nav > ul > li').refreshTip();
- event.preventDefault();
- }
- }).tip({
- stickIfCurrent: true,
- offset: -3
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement