'.widget', not '.postbox' in [18635], props aaroncampbell, see #17979

git-svn-id: http://svn.automattic.com/wordpress/trunk@18636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-09-03 21:45:01 +00:00
parent b645d74be4
commit fb970629fb
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ wpWidgets = {
if ( !$(this).is(':visible') || this.id.indexOf('orphaned_widgets') != -1 ) if ( !$(this).is(':visible') || this.id.indexOf('orphaned_widgets') != -1 )
sender.sortable('cancel'); sender.sortable('cancel');
if ( sender.attr('id').indexOf('orphaned_widgets') != -1 && !sender.children('.postbox').length ) { if ( sender.attr('id').indexOf('orphaned_widgets') != -1 && !sender.children('.widget').length ) {
sender.parents('.orphan-sidebar').slideUp(400, function(){ $(this).remove(); }); sender.parents('.orphan-sidebar').slideUp(400, function(){ $(this).remove(); });
} }
} }

File diff suppressed because one or more lines are too long