Widgets screen: while dragging a widget over a closed sidebar refresh only the widgets in the current sidebar instead of all widgets in all sidebars.
Props chriscct7. Fixes #33015. git-svn-id: https://develop.svn.wordpress.org/trunk@33354 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2ab769b1b9
commit
4e7b5dca5b
@ -146,8 +146,9 @@ wpWidgets = {
|
|||||||
if ( $wrap.hasClass( 'closed' ) ) {
|
if ( $wrap.hasClass( 'closed' ) ) {
|
||||||
wpWidgets.hoveredSidebar = $wrap;
|
wpWidgets.hoveredSidebar = $wrap;
|
||||||
$wrap.removeClass( 'closed' );
|
$wrap.removeClass( 'closed' );
|
||||||
sidebars.sortable( 'refresh' );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$( this ).sortable( 'refresh' );
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user