Make WordPress Core

Changeset 9049


Ignore:
Timestamp:
10/01/2008 10:32:18 PM (16 years ago)
Author:
markjaquith
Message:

Add some delay to the favorites menu so that it is harder to accidentally open or close

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/common.js

    r9003 r9049  
    7777
    7878    $('#dashmenu li.wp-has-submenu').bind( 'mouseenter mouseleave', function() { return menuToggle( $(this).children('ul'), 'toggle' ); } );
    79    
    80     $('#favorite-actions').bind( 'mouseenter mouseleave', function(){$('#favorite-action').slideToggle('fast')} );
     79
     80    $('#favorite-actions').bind( 'mouseenter', function(){$('#favorite-action').removeClass('slideUp').addClass('slideDown'); setTimeout(function(){if ( $('#favorite-action').hasClass('slideDown') ) { $('#favorite-action').slideDown('fast') }}, 300) } );
     81    $('#favorite-actions').bind( 'mouseleave', function(){$('#favorite-action').removeClass('slideDown').addClass('slideUp'); setTimeout(function(){if ( $('#favorite-action').hasClass('slideUp') ) { $('#favorite-action').slideUp('fast') }}, 500) } );
    8182
    8283} );
  • trunk/wp-includes/script-loader.php

    r9048 r9049  
    4545    $scripts->default_version = get_bloginfo( 'version' );
    4646
    47     $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'user-settings'), '20080905' );
     47    $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'user-settings'), '20081001' );
    4848    $scripts->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' );
    4949
Note: See TracChangeset for help on using the changeset viewer.