WordPress.org

Make WordPress Core

Ticket #21247: 21247_v2.diff

File 21247_v2.diff, 592 bytes (added by lessbloat, 3 years ago)

We only need this on the header portion of the widget, not the body ;-)

  • wp-admin/js/widgets.dev.js

     
    3131                        $(this).css( 'minHeight', h + 'px' ); 
    3232                }); 
    3333 
    34                 $('a.widget-action').live('click', function(){ 
     34                $('#widgets-right .widget-top, a.widget-action').live('click', function(){ 
    3535                        var css = {}, widget = $(this).closest('div.widget'), inside = widget.children('.widget-inside'), w = parseInt( widget.find('input.widget-width').val(), 10 ); 
    3636 
    3737                        if ( inside.is(':hidden') ) {