Line | |
---|
1 | (function($){ |
---|
2 | $(document).ready(function(){ |
---|
3 | |
---|
4 | /*fix the situation when the menu is visible from the submenu.*/ |
---|
5 | $('#access').find('div > ul > li').each(function(){ |
---|
6 | if($(this).children('ul').length > 0){ |
---|
7 | $(this).css({ 'z-index': '2' }); |
---|
8 | } else { |
---|
9 | $(this).css({ 'z-index': '1' }); |
---|
10 | } |
---|
11 | }); |
---|
12 | |
---|
13 | /*fix menu:hover*/ |
---|
14 | $('#access').find('div > ul > li:not(.current-menu-item, .current-menu-ancestor, .current_page_item, .current_page_ancestor) > a:only-child').hover( function() { |
---|
15 | $(this).css('background-color', '#2e6eae'); |
---|
16 | }, function() { |
---|
17 | $(this).css('background-color', 'transparent'); |
---|
18 | }); |
---|
19 | }); |
---|
20 | })(jQuery); |
---|
Note: See
TracBrowser for help on using the repository browser.