Make WordPress Core

Ticket #13524: 13524.2.patch

File 13524.2.patch, 730 bytes (added by chriscct7, 11 years ago)

Adds hover delay

  • wp-admin/js/widgets.js

     
    135135                                        // Prevents jumping when dragging a widget from an open sidebar to a closed sidebar below.
    136136                                        height = ui.item.hasClass('ui-draggable') ? $this.height() : 1 + $this.height();
    137137                                        $this.css( 'min-height', height + 'px' );
     138                                } else {
     139                                        var hashoverover;
     140                                        $($wrap).mouseover(function() {
     141                                                hashoverover = setTimeout( function() {
     142                                                        $wrap.removeClass('closed'); },
     143                                                100 );
     144                                        });
     145
     146                                        $($wrap).mouseout(function() {
     147                                                clearTimeout(hashoverover);
     148                                        });
    138149                                }
    139150                        },
    140151