Make WordPress Core


Ignore:
Timestamp:
09/03/2011 03:01:11 AM (13 years ago)
Author:
azaozz
Message:

Moves orphaned sidebars to main content area above Inactive Widgets, props aaroncampbell, see #17979

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/widgets.dev.js

    r18095 r18631  
    135135                wpWidgets.saveOrder(sb);
    136136            },
    137             receive: function(e,ui) {
    138                 if ( !$(this).is(':visible') )
    139                     $(this).sortable('cancel');
     137            receive: function(e, ui) {
     138                if ( !$(this).is(':visible') || this.id.indexOf('orphaned_widgets') != -1 )
     139                    $(ui.sender).sortable('cancel');
    140140            }
    141141        }).sortable('option', 'connectWith', 'div.widgets-sortables').parent().filter('.closed').children('.widgets-sortables').sortable('disable');
Note: See TracChangeset for help on using the changeset viewer.