# Patch for Ticket #: 1021 http://trac.buddypress.org/ticket/1021
# - Added an IE6 conditional around the Suckerfish classes
# - Checks if browser supports the CSS max-height attribute; IE6 is the only modern browser that doesn't support max-height
# - Thickbox also uses this technique to check IE6
# - Replaced mouseover() and mouseout() with jQuery.hover()
# - v1.01 (deleted stupid new line at end of patch)
# r-a-y
|
|
|
1 | 1 | jQuery(document).ready( function() { |
2 | | jQuery("#wp-admin-bar ul.main-nav li").mouseover( function() { |
3 | | jQuery(this).addClass('sfhover'); |
4 | | }); |
5 | | |
6 | | jQuery("#wp-admin-bar ul.main-nav li").mouseout( function() { |
7 | | jQuery(this).removeClass('sfhover'); |
8 | | }); |
| 2 | if(typeof document.body.style.maxHeight === "undefined") { |
| 3 | jQuery("ul.main-nav li").hover( function() { |
| 4 | jQuery(this).addClass('sfhover'); |
| 5 | },function() { |
| 6 | jQuery(this).removeClass('sfhover'); |
| 7 | }); |
| 8 | } |
9 | 9 | }); |