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

git-svn-id: https://develop.svn.wordpress.org/trunk@18631 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-09-03 03:01:11 +00:00
parent 4782c3dc6f
commit bcd9d1a36e
10 changed files with 64 additions and 48 deletions
+3 -3
View File
@@ -134,9 +134,9 @@ wpWidgets = {
}
wpWidgets.saveOrder(sb);
},
receive: function(e,ui) {
if ( !$(this).is(':visible') )
$(this).sortable('cancel');
receive: function(e, ui) {
if ( !$(this).is(':visible') || this.id.indexOf('orphaned_widgets') != -1 )
$(ui.sender).sortable('cancel');
}
}).sortable('option', 'connectWith', 'div.widgets-sortables').parent().filter('.closed').children('.widgets-sortables').sortable('disable');