Skip to:
Content

BuddyPress.org

Ticket #1021: admin-bar(v1).patch

File admin-bar(v1).patch, 1019 bytes (added by r-a-y, 16 years ago)

Removed last line in old patch that was causing the error in IE6

  • buddypress/bp-core/js/admin-bar.js

    # 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
     
    11jQuery(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        }
    99});